aboutsummaryrefslogtreecommitdiff
path: root/src/node_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_file.cc')
-rw-r--r--src/node_file.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_file.cc b/src/node_file.cc
index 17a44dd784..16f2506d1f 100644
--- a/src/node_file.cc
+++ b/src/node_file.cc
@@ -794,8 +794,8 @@ static void InternalModuleReadJSON(const FunctionCallbackInfo<Value>& args) {
Local<String> chars_string =
String::NewFromUtf8(env->isolate(),
&chars[start],
- String::kNormalString,
- size);
+ v8::NewStringType::kNormal,
+ size).ToLocalChecked();
args.GetReturnValue().Set(chars_string);
}
}