diff options
Diffstat (limited to 'src/node_crypto.cc')
-rw-r--r-- | src/node_crypto.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 222f4089d8..16d958ea88 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -5751,8 +5751,8 @@ void SetFipsCrypto(const FunctionCallbackInfo<Value>& args) { CHECK(!per_process_opts->force_fips_crypto); Environment* env = Environment::GetCurrent(args); const bool enabled = FIPS_mode(); - bool enable; - if (!args[0]->BooleanValue(env->context()).To(&enable)) return; + bool enable = args[0]->BooleanValue(env->isolate()); + if (enable == enabled) return; // No action needed. if (!FIPS_mode_set(enable)) { |