|
@ -401,7 +401,7 @@ NAN_METHOD(Canvas::StreamPNGSync) { |
|
|
|
|
|
|
|
|
if (!args[2]->StrictEquals(NanUndefined())) { |
|
|
if (!args[2]->StrictEquals(NanUndefined())) { |
|
|
if (args[2]->IsUint32()) { |
|
|
if (args[2]->IsUint32()) { |
|
|
filter = args[1]->Uint32Value(); |
|
|
filter = args[2]->Uint32Value(); |
|
|
} else { |
|
|
} else { |
|
|
return NanThrowTypeError("Invalid filter value."); |
|
|
return NanThrowTypeError("Invalid filter value."); |
|
|
} |
|
|
} |
|
|