@@ -610,7 +610,7 @@ bool SafeGetenv(const char* key, std::string* text) {
610610
611611
612612void * ArrayBufferAllocator::Allocate (size_t size) {
613- if (zero_fill_field_ || zero_fill_all_buffers)
613+ if (zero_fill_field_ || per_process_opts-> zero_fill_all_buffers )
614614 return UncheckedCalloc (size);
615615 else
616616 return UncheckedMalloc (size);
@@ -1920,8 +1920,7 @@ void SetupProcessObject(Environment* env,
19201920 }
19211921
19221922 // --no-deprecation
1923- // TODO(addaleax): Uncomment the commented part.
1924- if (/* env->options()->*/ no_deprecation) {
1923+ if (env->options ()->no_deprecation ) {
19251924 READONLY_PROPERTY (process, " noDeprecation" , True (env->isolate ()));
19261925 }
19271926
@@ -2442,16 +2441,6 @@ inline void PlatformInit() {
24422441#endif // _WIN32
24432442}
24442443
2445- // TODO(addaleax): Remove, both from the public API and in implementation.
2446- bool no_deprecation = false ;
2447- #if HAVE_OPENSSL
2448- bool ssl_openssl_cert_store = false ;
2449- #if NODE_FIPS_MODE
2450- bool enable_fips_crypto = false ;
2451- bool force_fips_crypto = false ;
2452- #endif
2453- #endif
2454-
24552444void ProcessArgv (std::vector<std::string>* args,
24562445 std::vector<std::string>* exec_args,
24572446 bool is_env) {
@@ -2535,17 +2524,6 @@ void ProcessArgv(std::vector<std::string>* args,
25352524 if (v8_args_as_char_ptr.size () > 1 ) {
25362525 exit (9 );
25372526 }
2538-
2539- // TODO(addaleax): Remove.
2540- zero_fill_all_buffers = per_process_opts->zero_fill_all_buffers ;
2541- no_deprecation = per_process_opts->per_isolate ->per_env ->no_deprecation ;
2542- #if HAVE_OPENSSL
2543- ssl_openssl_cert_store = per_process_opts->ssl_openssl_cert_store ;
2544- #if NODE_FIPS_MODE
2545- enable_fips_crypto = per_process_opts->enable_fips_crypto ;
2546- force_fips_crypto = per_process_opts->force_fips_crypto ;
2547- #endif
2548- #endif
25492527}
25502528
25512529
0 commit comments