| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,14 +72,15 @@ namespace demo { | |||
| 72 | 72 | using v8::FunctionCallbackInfo; | |
| 73 | 73 | using v8::Isolate; | |
| 74 | 74 | using v8::Local; | |
| 75 | + using v8::NewStringType; | ||
| 75 | 76 | using v8::Object; | |
| 76 | 77 | using v8::String; | |
| 77 | 78 | using v8::Value; | |
| 78 | 79 | ||
| 79 | 80 | void Method(const FunctionCallbackInfo<Value>& args) { | |
| 80 | 81 | Isolate* isolate = args.GetIsolate(); | |
| 81 | 82 | args.GetReturnValue().Set(String::NewFromUtf8( | |
| 82 | - isolate, "world").ToLocalChecked()); | ||
| 83 | + isolate, "world", NewStringType::kNormal).ToLocalChecked()); | ||
| 83 | 84 | } | |
| 84 | 85 | ||
| 85 | 86 | void Initialize(Local<Object> exports) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments