We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b46e126 commit 33c39daCopy full SHA for 33c39da
1 file changed
lib/imagedata.js
@@ -1,5 +1,5 @@
1
function ImageData(width, height) {
2
- if (width instanceof ImageData) {
+ if (width && width instanceof Object) {
3
this.width = width.width;
4
this.height = width.height;
5
this.data = width.data;
0 commit comments