node/test/js-native-api/6_object_wrap
legendecas f3bb6a38ae node-api: generalize finalizer second pass callback
Generalize the finalizer's second pass callback to make it
cancellable and simplify the code around the second pass callback.

With this change, it is determined that Reference::Finalize or
RefBase::Finalize are called once, either from the env's shutdown,
or from the env's second pass callback.

All existing node-api js tests should pass without a touch. The
js_native_api cctest is no longer applicable with this change,
just removing it.

PR-URL: https://github.com/nodejs/node/pull/44141
Refs: https://github.com/nodejs/node/issues/44071
Reviewed-By: Michael Dawson <midawson@redhat.com>
2023-01-05 13:11:34 -03:00
..
6_object_wrap.cc node-api: generalize finalizer second pass callback 2023-01-05 13:11:34 -03:00
binding.gyp test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00
myobject.h
test-object-wrap-ref.js node-api: generalize finalizer second pass callback 2023-01-05 13:11:34 -03:00
test.js test: give js-native-api tests consistent names 2021-05-19 16:43:19 -04:00