We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45ff691 commit 312ad07Copy full SHA for 312ad07
graal-nodejs/test/js-native-api/test_finalizer/test.js
@@ -33,8 +33,9 @@ async function runAsyncTests() {
33
// We use IIFE for the obj scope instead of {} to be compatible with
34
// non-V8 JS engines that do not support scoped variables.
35
(() => {
36
- const obj = {};
+ let obj = {};
37
test_finalizer.addFinalizerWithJS(obj, () => { js_is_called = true; });
38
+ obj = null;
39
})();
40
await common.gcUntil('ensure JS finalizer called',
41
() => (test_finalizer.getFinalizerCallCount() === 2));
0 commit comments