diff options
author | cjihrig <cjihrig@gmail.com> | 2018-12-07 09:29:58 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-12-09 09:42:05 +0300 |
commit | 24e6b709eadd320ae39fd942261ac111446bb3c9 (patch) | |
tree | be4581f06e462c683f1ba28d86e73b2f9ee069ac /src/node_i18n.cc | |
parent | 4dc10ac7d7ddd2cc52e84d1394f7e863d576109f (diff) |
src: use isolate version of BooleanValue()
This fixes deprecation warnings.
PR-URL: https://github.com/nodejs/node/pull/24883
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
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 d2a8c381820..d3e1b96616b 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; |