-
-
Notifications
You must be signed in to change notification settings - Fork 485
Closed
Description
Since nodejs/node#50060 is now in core, we need to add support for these types.
Looking at the Node-API docs, we can find which node-addon-api methods on Napi::Env
should be split between normal and nogc
variants. The normal variant can use nogc methods, but not the other way around:
- nogc:
AddCleanupHook
GetInstanceData
SetInstanceData
GetModuleFileName
- normal:
Global
Undefined
Null
IsExceptionPending
GetAndClearPendingException
RunScript
Additionally, all JavaScript-using paradigms (creating new Values, calling functions, ...) should use the normal variant, and have a compile-time error if a nogc variant is supplied.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done