From 47209cb11356a6daefbbfdcc3b4dc54f6ad8078d Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Thu, 29 Nov 2018 10:58:07 +0300 Subject: [PATCH] Try new Run #3 --- include/event-emitter.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/event-emitter.hpp b/include/event-emitter.hpp index 902c510..e9c3bbc 100644 --- a/include/event-emitter.hpp +++ b/include/event-emitter.hpp @@ -335,7 +335,7 @@ private: V8_VAR_STR stack = v8::Script::Compile(code)->Run( Nan::GetCurrentContext() - ).As()->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()->Value(); + ).ToLocalChecked(); Nan::Callback decorCb(decor); V8_VAR_VAL argv[] = { info.This(), info[0], raw };