node/test/js-native-api/test_exception
Joyee Cheung 7c8d98ea84
test: pass data into napi_create_external
Since v8 10.1 v8::External::New DCHECKs that the data passed
into it cannot be a nullptr because that's not serializable
as external references. This updates the test to pass a
dummy data pointer to the call - which does not matter for the
test since we only care about whether the finalizer is
called.

Refs: https://chromium-review.googlesource.com/c/v8/v8/+/3513234

PR-URL: https://github.com/nodejs/node/pull/42532
Refs: https://github.com/nodejs/node/pull/42115
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-04-02 23:57:33 +01:00
..
binding.gyp test: partition N-API tests 2018-12-04 13:58:17 -08:00
test_exception.c test: pass data into napi_create_external 2022-04-02 23:57:33 +01:00
test.js node-api: rtn pending excep on napi_new_instance 2021-06-04 16:38:06 -04:00
testFinalizerException.js test: remove unneeded m flag on regular expressions 2021-04-09 06:35:51 -07:00