@@ -610,7 +610,7 @@ bool SafeGetenv(const char* key, std::string* text) {
610
610
611
611
612
612
void * 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 )
614
614
return UncheckedCalloc (size);
615
615
else
616
616
return UncheckedMalloc (size);
@@ -1920,8 +1920,7 @@ void SetupProcessObject(Environment* env,
1920
1920
}
1921
1921
1922
1922
// --no-deprecation
1923
- // TODO(addaleax): Uncomment the commented part.
1924
- if (/* env->options()->*/ no_deprecation) {
1923
+ if (env->options ()->no_deprecation ) {
1925
1924
READONLY_PROPERTY (process, " noDeprecation" , True (env->isolate ()));
1926
1925
}
1927
1926
@@ -2442,16 +2441,6 @@ inline void PlatformInit() {
2442
2441
#endif // _WIN32
2443
2442
}
2444
2443
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
-
2455
2444
void ProcessArgv (std::vector<std::string>* args,
2456
2445
std::vector<std::string>* exec_args,
2457
2446
bool is_env) {
@@ -2535,17 +2524,6 @@ void ProcessArgv(std::vector<std::string>* args,
2535
2524
if (v8_args_as_char_ptr.size () > 1 ) {
2536
2525
exit (9 );
2537
2526
}
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
2549
2527
}
2550
2528
2551
2529
0 commit comments