@@ -879,21 +879,25 @@ Environment::Environment(IsolateData* isolate_data,
879879 // unless explicitly allowed by the user
880880 options_->allow_native_addons = false ;
881881 flags_ = flags_ | EnvironmentFlags::kNoCreateInspector ;
882- permission ()->Apply ({" *" }, permission::PermissionScope::kInspector );
882+ permission ()->Apply (this , {" *" }, permission::PermissionScope::kInspector );
883883 if (!options_->allow_child_process ) {
884- permission ()->Apply ({" *" }, permission::PermissionScope::kChildProcess );
884+ permission ()->Apply (
885+ this , {" *" }, permission::PermissionScope::kChildProcess );
885886 }
886887 if (!options_->allow_worker_threads ) {
887- permission ()->Apply ({" *" }, permission::PermissionScope::kWorkerThreads );
888+ permission ()->Apply (
889+ this , {" *" }, permission::PermissionScope::kWorkerThreads );
888890 }
889891
890892 if (!options_->allow_fs_read .empty ()) {
891- permission ()->Apply (options_->allow_fs_read ,
893+ permission ()->Apply (this ,
894+ options_->allow_fs_read ,
892895 permission::PermissionScope::kFileSystemRead );
893896 }
894897
895898 if (!options_->allow_fs_write .empty ()) {
896- permission ()->Apply (options_->allow_fs_write ,
899+ permission ()->Apply (this ,
900+ options_->allow_fs_write ,
897901 permission::PermissionScope::kFileSystemWrite );
898902 }
899903 }
0 commit comments