You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Napi::HandleScope::HandleScope(const Napi::HandleScope &)cannot be referenced -- it is a deleted function #1197
When trying to convert an open source project from NAN to napi, I'm getting the following error when trying to ref a HandleScope object.
function "Napi::HandleScope::HandleScope(const Napi::HandleScope &)" (declared at line 2269 of "D:\devl\js\fsuipc-node\node_modules\node-addon-api\napi.h") cannot be referenced -- it is a deleted function
Activity
legendecas commentedon Sep 16, 2022
You should be able to create a handle scope with a similar pattern in NAN:
The pattern in the document shows the declaration of the
Napi::HandleScopeconstructor. It is not meant to be constructed in that way.I believe we need an example in the HandleScope documentation.
mhdawson commentedon Sep 16, 2022
@KevinEady will take a look at updating the documentation.