From 62470c4f45741fe204db986f8ef7787e98ec65ce Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 17 Sep 2018 15:57:25 -0700 Subject: Upgrade V8 to 7.0.276.15 --- libdeno/binding.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdeno/binding.cc') diff --git a/libdeno/binding.cc b/libdeno/binding.cc index 8ca34684b..dbbd387e7 100644 --- a/libdeno/binding.cc +++ b/libdeno/binding.cc @@ -58,7 +58,7 @@ void HandleExceptionStr(v8::Local context, // global_error_handler is set so we try to handle the exception in // javascript. v8::Local args[5]; - args[0] = exception->ToString(); + args[0] = exception->ToString(context).ToLocalChecked(); args[1] = message->GetScriptResourceName(); args[2] = line; args[3] = column; @@ -79,7 +79,7 @@ void HandleExceptionStr(v8::Local context, msg += "\n"; for (int i = 0; i < stack_trace->GetFrameCount(); ++i) { - auto frame = stack_trace->GetFrame(i); + auto frame = stack_trace->GetFrame(isolate, i); v8::String::Utf8Value script_name(isolate, frame->GetScriptName()); int l = frame->GetLineNumber(); int c = frame->GetColumn(); -- cgit v1.2.3