diff options
author | Ujjwal Sharma <usharma1998@gmail.com> | 2018-08-02 00:00:46 +0300 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2018-09-01 21:37:08 +0300 |
commit | 59e5a39d300aba3c018e7abb13f4f3e94a1398d4 (patch) | |
tree | ea957f2a3a710cc8da9120af893ce8faa3a8adef /src/node_i18n.cc | |
parent | c8880ea27645aec31ef9dd5687c57747f338d67f (diff) |
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 <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_i18n.cc')
-rw-r--r-- | src/node_i18n.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_i18n.cc b/src/node_i18n.cc index e6c198fb634..e5d5c0d412d 100644 --- a/src/node_i18n.cc +++ b/src/node_i18n.cc @@ -815,8 +815,8 @@ static void GetStringWidth(const FunctionCallbackInfo<Value>& 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( |