File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ using node::ExitCode;
2323using v8::Array;
2424using v8::ArrayBuffer;
2525using v8::BackingStore;
26+ using v8::Boolean;
2627using v8::Context;
2728using v8::Function;
2829using v8::FunctionCallbackInfo;
@@ -826,7 +827,8 @@ void Initialize(Local<Object> target,
826827 Local<Value> unused,
827828 Local<Context> context,
828829 void * priv) {
829- Isolate* isolate = context->GetIsolate ();
830+ Environment* env = Environment::GetCurrent (context);
831+ Isolate* isolate = env->isolate ();
830832
831833 // Set boolean flags as properties (computed once, avoids repeated calls).
832834 bool is_sea = IsSingleExecutable ();
@@ -838,8 +840,8 @@ void Initialize(Local<Object> target,
838840 SeaResource sea_resource = FindSingleExecutableResource ();
839841 is_vfs_enabled =
840842 static_cast <bool >(sea_resource.flags & SeaFlags::kEnableVfs );
841- if (!static_cast <bool >(
842- sea_resource. flags & SeaFlags::kDisableExperimentalSeaWarning )) {
843+ if (!static_cast <bool >(sea_resource. flags &
844+ SeaFlags::kDisableExperimentalSeaWarning )) {
843845 is_experimental_warning_needed = true ;
844846 }
845847 }
You can’t perform that action at this time.
0 commit comments