Browse Source

Merge pull request #356 from selaux/fix-filter-parameter

Fix filter parameter in toBuffer method
v1.x
Juriy Zaytsev 11 years ago
parent
commit
5cc0a5fdad
  1. 2
      src/Canvas.cc

2
src/Canvas.cc

@ -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.");
}

Loading…
Cancel
Save