Try new Run #3

This commit is contained in:
Luis Blanco 2018-11-29 10:58:07 +03:00
parent f09dddceb0
commit 47209cb113
1 changed files with 2 additions and 2 deletions

View File

@ -335,7 +335,7 @@ private:
V8_VAR_STR stack = v8::Script::Compile(code)->Run(
Nan::GetCurrentContext()
).As<v8::String>()->Value();
).ToLocalChecked();
Nan::Utf8String stackStr(stack);
msg += *stackStr;
@ -441,7 +441,7 @@ private:
V8_VAR_FUNC decor = v8::Script::Compile(code)->Run(
Nan::GetCurrentContext()
).As<v8::Function>()->Value();
).ToLocalChecked();
Nan::Callback decorCb(decor);
V8_VAR_VAL argv[] = { info.This(), info[0], raw };