Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ImageData constructor #4306

Merged
merged 5 commits into from
Aug 20, 2015
Merged

Fix ImageData constructor #4306

merged 5 commits into from
Aug 20, 2015

Conversation

zhengbli
Copy link
Contributor

Fix issue #4220

@@ -430,12 +430,10 @@ interface ImageData {
data: number[];
height: number;
width: number;
new(width: number, height: number): ImageData;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is going to be a breaking change. are we sure that ImageData does not have a constructor overload that takes no arguments?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The MDN spec has only two constructors with arguments. And I tried in IE, Edge, Firefox and Chrome, none of them supports an argument-less constructor for ImageData

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks 👍

@mhegazy mhegazy added the Breaking Change Would introduce errors in existing code label Aug 13, 2015
@mhegazy mhegazy added this to the TypeScript 1.6 milestone Aug 13, 2015
@mhegazy
Copy link
Contributor

mhegazy commented Aug 19, 2015

👍

zhengbli added a commit that referenced this pull request Aug 20, 2015
@zhengbli zhengbli merged commit bce2d67 into microsoft:master Aug 20, 2015
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Breaking Change Would introduce errors in existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants