@@ -777,6 +777,11 @@ PerIsolateOptionsParser::PerIsolateOptionsParser(
777777 Implies (" --experimental-shadow-realm" , " --harmony-shadow-realm" );
778778 Implies (" --harmony-shadow-realm" , " --experimental-shadow-realm" );
779779 ImpliesNot (" --no-harmony-shadow-realm" , " --experimental-shadow-realm" );
780+ AddOption (" --build-snapshot" ,
781+ " Generate a snapshot blob when the process exits."
782+ " Currently only supported in the node_mksnapshot binary." ,
783+ &PerIsolateOptions::build_snapshot,
784+ kDisallowedInEnvvar );
780785
781786 Insert (eop, &PerIsolateOptions::get_per_env_options);
782787}
@@ -815,11 +820,6 @@ PerProcessOptionsParser::PerProcessOptionsParser(
815820 " disable Object.prototype.__proto__" ,
816821 &PerProcessOptions::disable_proto,
817822 kAllowedInEnvvar );
818- AddOption (" --build-snapshot" ,
819- " Generate a snapshot blob when the process exits."
820- " Currently only supported in the node_mksnapshot binary." ,
821- &PerProcessOptions::build_snapshot,
822- kDisallowedInEnvvar );
823823 AddOption (" --node-snapshot" ,
824824 " " , // It's a debug-only option.
825825 &PerProcessOptions::node_snapshot,
0 commit comments