Skip to content

Commit 7de2441

Browse files
Hakerh400chearon
authored andcommitted
Check correct version
1 parent c9ce7b6 commit 7de2441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CanvasRenderingContext2d.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ NAN_SETTER(Context2d::SetCurrentTransform) {
17181718
Context2d *context = Nan::ObjectWrap::Unwrap<Context2d>(info.This());
17191719
Local<Context> ctx = Nan::GetCurrentContext();
17201720

1721-
#if NODE_MAJOR_VERSION > 6
1721+
#if NODE_MAJOR_VERSION >= 8
17221722
if (!Nan::To<Object>(value).ToLocalChecked()->InstanceOf(ctx, _DOMMatrix.Get(Isolate::GetCurrent())).ToChecked())
17231723
return Nan::ThrowTypeError("Expected DOMMatrix");
17241724
#endif

0 commit comments

Comments
 (0)