Skip to content

Commit

Permalink
Merge pull request Automattic#356 from selaux/fix-filter-parameter
Browse files Browse the repository at this point in the history
Fix filter parameter in toBuffer method
  • Loading branch information
kangax committed Dec 6, 2013
2 parents b4d803b + bc6df35 commit 5cc0a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Canvas.cc
Expand Up @@ -277,7 +277,7 @@ NAN_METHOD(Canvas::ToBuffer) {

if (!args[2]->StrictEquals(Undefined())) {
if (args[2]->IsUint32()) {
filter = args[1]->Uint32Value();
filter = args[2]->Uint32Value();
} else {
return NanThrowTypeError("Invalid filter value.");
}
Expand Down

0 comments on commit 5cc0a5f

Please sign in to comment.