Skip to content

Commit d6cc49a

Browse files
committed
1 parent 9c29429 commit d6cc49a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/native/bindings.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,4 +488,8 @@ NAN_MODULE_INIT(Init) {
488488
Nan::Export(target, "setError", WebGLRenderingContext::SetError);
489489
}
490490

491+
#if NODE_MAJOR_VERSION >= 10
492+
NAN_MODULE_WORKER_ENABLED(webgl, Init)
493+
#else
491494
NODE_MODULE(webgl, Init)
495+
#endif

0 commit comments

Comments
 (0)