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 8347d73 commit a88bffeCopy full SHA for a88bffe
1 file changed
test/addons/cppgc-object/test.js
@@ -12,6 +12,11 @@ const {
12
CppGCed, states, kDestructCount, kTraceCount,
13
} = require(`./build/${common.buildType}/binding`);
14
15
+const GC_OPTIONS = {
16
+ type: 'major',
17
+ execution: 'sync',
18
+};
19
+
20
assert.strictEqual(states[kDestructCount], 0);
21
assert.strictEqual(states[kTraceCount], 0);
22
@@ -38,6 +43,8 @@ setTimeout(common.mustCall(() => (async function() {
38
43
await gcUntil(
39
44
'All old CppGCed are destroyed',
40
45
() => states[kDestructCount] === count,
46
+ undefined,
47
+ GC_OPTIONS,
41
48
);
42
49
// Release all the CppGCed objects, after GC we should have destructed
50
// all of them.
@@ -47,5 +54,7 @@ setTimeout(common.mustCall(() => (async function() {
54
55
56
() => states[kDestructCount] === count * 2,
57
58
59
51
60
})().then(common.mustCall())), 1);
0 commit comments