We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6e1efc commit 39ce902Copy full SHA for 39ce902
doc/api/addons.md
@@ -72,14 +72,15 @@ namespace demo {
72
using v8::FunctionCallbackInfo;
73
using v8::Isolate;
74
using v8::Local;
75
+using v8::NewStringType;
76
using v8::Object;
77
using v8::String;
78
using v8::Value;
79
80
void Method(const FunctionCallbackInfo<Value>& args) {
81
Isolate* isolate = args.GetIsolate();
82
args.GetReturnValue().Set(String::NewFromUtf8(
- isolate, "world").ToLocalChecked());
83
+ isolate, "world", NewStringType::kNormal).ToLocalChecked());
84
}
85
86
void Initialize(Local<Object> exports) {
0 commit comments