From 523ab6a929dacf4cdd692c1319173a1a49c642de Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 10 Jun 2019 18:49:30 -0400 Subject: Upgrade V8 to 7.7.37 (#2492) --- core/libdeno/binding.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'core/libdeno/binding.cc') diff --git a/core/libdeno/binding.cc b/core/libdeno/binding.cc index eac104677..ee379fc5b 100644 --- a/core/libdeno/binding.cc +++ b/core/libdeno/binding.cc @@ -101,11 +101,8 @@ void Print(const v8::FunctionCallbackInfo& args) { if (argsLen < 1 || argsLen > 2) { ThrowInvalidArgument(isolate); } - DenoIsolate* d = DenoIsolate::FromIsolate(isolate); - auto context = d->context_.Get(d->isolate_); v8::HandleScope handle_scope(isolate); - bool is_err = - args.Length() >= 2 ? args[1]->BooleanValue(context).ToChecked() : false; + bool is_err = args.Length() >= 2 ? args[1]->BooleanValue(isolate) : false; FILE* file = is_err ? stderr : stdout; #ifdef _WIN32 @@ -322,7 +319,8 @@ void Shared(v8::Local property, v8::ArrayBufferCreationMode::kExternalized); d->shared_ab_.Reset(isolate, ab); } - info.GetReturnValue().Set(d->shared_ab_); + auto shared_ab = d->shared_ab_.Get(isolate); + info.GetReturnValue().Set(shared_ab); } void DenoIsolate::ClearModules() { -- cgit v1.2.3