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 45871f3d3e..e6c198fb63 100644
--- a/src/node_i18n.cc
+++ b/src/node_i18n.cc
@@ -552,7 +552,7 @@ void GetVersion(const FunctionCallbackInfo<Value>& args) {
TYPE_ICU ","
TYPE_UNICODE ","
TYPE_CLDR ","
- TYPE_TZ));
+ TYPE_TZ, v8::NewStringType::kNormal).ToLocalChecked());
} else {
CHECK_GE(args.Length(), 1);
CHECK(args[0]->IsString());
@@ -565,7 +565,7 @@ void GetVersion(const FunctionCallbackInfo<Value>& args) {
// Success.
args.GetReturnValue().Set(
String::NewFromUtf8(env->isolate(),
- versionString));
+ versionString, v8::NewStringType::kNormal).ToLocalChecked());
}
}
}