We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d1b826 commit 90310b7Copy full SHA for 90310b7
1 file changed
lib/bin/node-spellchecker/src/main.cc
@@ -287,7 +287,8 @@ class Spellchecker : public Nan::ObjectWrap {
287
Nan::SetPrototypeMethod(tpl, "add", Spellchecker::Add);
288
Nan::SetPrototypeMethod(tpl, "remove", Spellchecker::Remove);
289
290
- Isolate* isolate = exports->GetIsolate();
+ // Isolate* isolate = exports->v8::Isolate::GetIsolate();
291
+ Isolate* isolate = v8::Isolate::GetCurrent();
292
Local<Context> context = isolate->GetCurrentContext();
293
Nan::Set(exports, Nan::New("Spellchecker").ToLocalChecked(), tpl->GetFunction(context).ToLocalChecked());
294
}
0 commit comments