Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/callback.cc')
-rw-r--r--src/api/callback.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/callback.cc b/src/api/callback.cc
index 2bb34b088f7..84664c08959 100644
--- a/src/api/callback.cc
+++ b/src/api/callback.cc
@@ -13,7 +13,6 @@ using v8::Isolate;
using v8::Local;
using v8::MaybeLocal;
using v8::MicrotasksScope;
-using v8::NewStringType;
using v8::Object;
using v8::String;
using v8::Value;
@@ -214,8 +213,7 @@ MaybeLocal<Value> MakeCallback(Isolate* isolate,
Local<Value> argv[],
async_context asyncContext) {
Local<String> method_string =
- String::NewFromUtf8(isolate, method, NewStringType::kNormal)
- .ToLocalChecked();
+ String::NewFromUtf8(isolate, method).ToLocalChecked();
return MakeCallback(isolate, recv, method_string, argc, argv, asyncContext);
}