| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8c9e3a9 commit 5438611
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -233,7 +233,6 @@ using v8::Exception; | |||
| 233 | 233 | using v8::Function; | |
| 234 | 234 | using v8::FunctionCallbackInfo; | |
| 235 | 235 | using v8::Local; | |
| 236 | - using v8::NewStringType; | ||
| 237 | 236 | using v8::Object; | |
| 238 | 237 | using v8::String; | |
| 239 | 238 | using v8::Value; | |
@@ -644,8 +643,7 @@ void GetLinkedBinding(const FunctionCallbackInfo<Value>& args) { | |||
| 644 | 643 | Local<Object> module = Object::New(env->isolate()); | |
| 645 | 644 | Local<Object> exports = Object::New(env->isolate()); | |
| 646 | 645 | Local<String> exports_prop = | |
| 647 | - String::NewFromUtf8(env->isolate(), "exports", NewStringType::kNormal) | ||
| 648 | - .ToLocalChecked(); | ||
| 646 | + String::NewFromUtf8Literal(env->isolate(), "exports"); | ||
| 649 | 647 | module->Set(env->context(), exports_prop, exports).Check(); | |
| 650 | 648 | ||
| 651 | 649 | if (mod->nm_context_register_func != nullptr) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments