summaryrefslogtreecommitdiff
path: root/src/node_i18n.cc
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-12-07 01:29:58 -0500
committerRich Trott <rtrott@gmail.com>2018-12-08 22:42:05 -0800
commit24e6b709eadd320ae39fd942261ac111446bb3c9 (patch)
treebe4581f06e462c683f1ba28d86e73b2f9ee069ac /src/node_i18n.cc
parent4dc10ac7d7ddd2cc52e84d1394f7e863d576109f (diff)
downloadandroid-node-v8-24e6b709eadd320ae39fd942261ac111446bb3c9.tar.gz
android-node-v8-24e6b709eadd320ae39fd942261ac111446bb3c9.tar.bz2
android-node-v8-24e6b709eadd320ae39fd942261ac111446bb3c9.zip
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.cc2
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;