@@ -773,6 +773,11 @@ PerIsolateOptionsParser::PerIsolateOptionsParser(
773773 Implies (" --experimental-shadow-realm" , " --harmony-shadow-realm" );
774774 Implies (" --harmony-shadow-realm" , " --experimental-shadow-realm" );
775775 ImpliesNot (" --no-harmony-shadow-realm" , " --experimental-shadow-realm" );
776+ AddOption (" --build-snapshot" ,
777+ " Generate a snapshot blob when the process exits."
778+ " Currently only supported in the node_mksnapshot binary." ,
779+ &PerIsolateOptions::build_snapshot,
780+ kDisallowedInEnvvar );
776781
777782 Insert (eop, &PerIsolateOptions::get_per_env_options);
778783}
@@ -811,11 +816,6 @@ PerProcessOptionsParser::PerProcessOptionsParser(
811816 " disable Object.prototype.__proto__" ,
812817 &PerProcessOptions::disable_proto,
813818 kAllowedInEnvvar );
814- AddOption (" --build-snapshot" ,
815- " Generate a snapshot blob when the process exits."
816- " Currently only supported in the node_mksnapshot binary." ,
817- &PerProcessOptions::build_snapshot,
818- kDisallowedInEnvvar );
819819 AddOption (" --node-snapshot" ,
820820 " " , // It's a debug-only option.
821821 &PerProcessOptions::node_snapshot,
0 commit comments