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 80cf25a commit 33821c3Copy full SHA for 33821c3
src/node_api.cc
@@ -2020,8 +2020,8 @@ napi_status napi_wrap(napi_env env,
2020
2021
// Insert the wrapper into the object's prototype chain.
2022
v8::Local<v8::Value> proto = obj->GetPrototype();
2023
- wrapper->SetPrototype(proto);
2024
- obj->SetPrototype(wrapper);
+ CHECK(wrapper->SetPrototype(context, proto).FromJust());
+ CHECK(obj->SetPrototype(context, wrapper).FromJust());
2025
2026
if (result != nullptr) {
2027
// The returned reference should be deleted via napi_delete_reference()
0 commit comments