node/test/node-api/test_buffer
Anna Henningsen 493faf606d
n-api: keep napi_env alive while it has finalizers
Manage the napi_env refcount from Finalizer instances, as the
finalizer may refer to the napi_env until it is deleted.

Fixes: https://github.com/nodejs/node/issues/31134
Fixes: https://github.com/node-ffi-napi/node-ffi-napi/issues/48
PR-URL: https://github.com/nodejs/node/pull/31140
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2020-01-04 07:38:36 +01:00
..
binding.gyp test: partition N-API tests 2018-12-04 13:58:17 -08:00
test_buffer.c test: partition N-API tests 2018-12-04 13:58:17 -08:00
test-external-buffer.js n-api: keep napi_env alive while it has finalizers 2020-01-04 07:38:36 +01:00
test.js n-api: defer Buffer finalizer with SetImmediate 2019-06-14 13:03:12 +02:00