From 59e5a39d300aba3c018e7abb13f4f3e94a1398d4 Mon Sep 17 00:00:00 2001 From: Ujjwal Sharma Date: Thu, 2 Aug 2018 02:30:46 +0530 Subject: src: remove calls to deprecated v8 functions (BooleanValue) Remove all calls to deprecated v8 functions (here: Value::BooleanValue) inside the code (src directory only). PR-URL: https://github.com/nodejs/node/pull/22075 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- src/node_i18n.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/node_i18n.cc') diff --git a/src/node_i18n.cc b/src/node_i18n.cc index e6c198fb63..e5d5c0d412 100644 --- a/src/node_i18n.cc +++ b/src/node_i18n.cc @@ -815,8 +815,8 @@ static void GetStringWidth(const FunctionCallbackInfo& args) { if (args.Length() < 1) return; - bool ambiguous_as_full_width = args[1]->BooleanValue(); - bool expand_emoji_sequence = args[2]->BooleanValue(); + bool ambiguous_as_full_width = args[1]->IsTrue(); + bool expand_emoji_sequence = args[2]->IsTrue(); if (args[0]->IsNumber()) { args.GetReturnValue().Set( -- cgit v1.2.3