We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e341efe commit 0471c57Copy full SHA for 0471c57
doc/api/addons.md
@@ -912,7 +912,8 @@ void MyObject::New(const FunctionCallbackInfo<Value>& args) {
912
const int argc = 1;
913
Local<Value> argv[argc] = { args[0] };
914
Local<Function> cons =
915
- args.Data().As<Object>()->GetInternalField(0).As<Function>();
+ args.Data().As<Object>()->GetInternalField(0)
916
+ .As<Value>().As<Function>();
917
Local<Object> result =
918
cons->NewInstance(context, argc, argv).ToLocalChecked();
919
args.GetReturnValue().Set(result);
0 commit comments