diff --git a/src/node.cc b/src/node.cc index 3ac31b5e57f180..628f219cbeeb34 100644 --- a/src/node.cc +++ b/src/node.cc @@ -789,9 +789,6 @@ static ExitCode ProcessGlobalArgsInternal(std::vector* args, v8_args.emplace_back("--js-source-phase-imports"); - // WebAssembly JS Promise Integration - v8_args.emplace_back("--experimental-wasm-jspi"); - #ifdef __POSIX__ // Block SIGPROF signals when sleeping in epoll_wait/kevent/etc. Avoids the // performance penalty of frequent EINTR wakeups when the profiler is running. diff --git a/src/util-inl.h b/src/util-inl.h index 57ef6a15fd6ea4..4ec451aa2aa9ba 100644 --- a/src/util-inl.h +++ b/src/util-inl.h @@ -723,7 +723,7 @@ inline v8::MaybeLocal NewDictionaryInstanceNullProto( if (value.IsEmpty()) return v8::MaybeLocal(); } v8::Local obj = tmpl->NewInstance(context, property_values); - if (obj->SetPrototypeV2(context, v8::Null(context->GetIsolate())) + if (obj->SetPrototypeV2(context, v8::Null(v8::Isolate::GetCurrent())) .IsNothing()) { return v8::MaybeLocal(); }