diff options
Diffstat (limited to 'src/node_i18n.cc')
-rw-r--r-- | src/node_i18n.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_i18n.cc b/src/node_i18n.cc index d2a8c38182..d3e1b96616 100644 --- a/src/node_i18n.cc +++ b/src/node_i18n.cc @@ -733,7 +733,7 @@ static void ToASCII(const FunctionCallbackInfo<Value>& args) { CHECK(args[0]->IsString()); Utf8Value val(env->isolate(), args[0]); // optional arg - bool lenient = args[1]->BooleanValue(env->context()).FromJust(); + bool lenient = args[1]->BooleanValue(env->isolate()); enum idna_mode mode = lenient ? IDNA_LENIENT : IDNA_DEFAULT; MaybeStackBuffer<char> buf; |