@@ -879,21 +879,25 @@ Environment::Environment(IsolateData* isolate_data,
879
879
// unless explicitly allowed by the user
880
880
options_->allow_native_addons = false ;
881
881
flags_ = flags_ | EnvironmentFlags::kNoCreateInspector ;
882
- permission ()->Apply ({" *" }, permission::PermissionScope::kInspector );
882
+ permission ()->Apply (this , {" *" }, permission::PermissionScope::kInspector );
883
883
if (!options_->allow_child_process ) {
884
- permission ()->Apply ({" *" }, permission::PermissionScope::kChildProcess );
884
+ permission ()->Apply (
885
+ this , {" *" }, permission::PermissionScope::kChildProcess );
885
886
}
886
887
if (!options_->allow_worker_threads ) {
887
- permission ()->Apply ({" *" }, permission::PermissionScope::kWorkerThreads );
888
+ permission ()->Apply (
889
+ this , {" *" }, permission::PermissionScope::kWorkerThreads );
888
890
}
889
891
890
892
if (!options_->allow_fs_read .empty ()) {
891
- permission ()->Apply (options_->allow_fs_read ,
893
+ permission ()->Apply (this ,
894
+ options_->allow_fs_read ,
892
895
permission::PermissionScope::kFileSystemRead );
893
896
}
894
897
895
898
if (!options_->allow_fs_write .empty ()) {
896
- permission ()->Apply (options_->allow_fs_write ,
899
+ permission ()->Apply (this ,
900
+ options_->allow_fs_write ,
897
901
permission::PermissionScope::kFileSystemWrite );
898
902
}
899
903
}
0 commit comments