Skip to content

Commit 90310b7

Browse files
author
Bartosz Antosik
committed
Code adapted
1 parent 9d1b826 commit 90310b7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • lib/bin/node-spellchecker/src

lib/bin/node-spellchecker/src/main.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ class Spellchecker : public Nan::ObjectWrap {
287287
Nan::SetPrototypeMethod(tpl, "add", Spellchecker::Add);
288288
Nan::SetPrototypeMethod(tpl, "remove", Spellchecker::Remove);
289289

290-
Isolate* isolate = exports->GetIsolate();
290+
// Isolate* isolate = exports->v8::Isolate::GetIsolate();
291+
Isolate* isolate = v8::Isolate::GetCurrent();
291292
Local<Context> context = isolate->GetCurrentContext();
292293
Nan::Set(exports, Nan::New("Spellchecker").ToLocalChecked(), tpl->GetFunction(context).ToLocalChecked());
293294
}

0 commit comments

Comments
 (0)