summaryrefslogtreecommitdiff
path: root/src/node_i18n.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_i18n.cc')
-rw-r--r--src/node_i18n.cc4
1 files changed, 2 insertions, 2 deletions
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<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(