Skip to content

Commit d9e7d38

Browse files
committed
fixup! src: move fs state out of Environment
1 parent a68f057 commit d9e7d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_file.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2296,8 +2296,8 @@ void Initialize(Local<Object> target,
22962296
Environment* env = Environment::GetCurrent(context);
22972297
Isolate* isolate = env->isolate();
22982298
Environment::BindingScope<BindingData> binding_scope(env);
2299+
if (!binding_scope) return;
22992300
BindingData* binding_data = binding_scope.data;
2300-
if (binding_data == nullptr) return;
23012301

23022302
env->SetMethod(target, "access", Access);
23032303
env->SetMethod(target, "close", Close);

0 commit comments

Comments
 (0)