diff --git a/test/parallel/test-util-inspect.js b/test/parallel/test-util-inspect.js index 9ee02720897505..66887a10f48cd3 100644 --- a/test/parallel/test-util-inspect.js +++ b/test/parallel/test-util-inspect.js @@ -1662,7 +1662,10 @@ assert.strictEqual(util.inspect('"\'${a}'), "'\"\\'${a}'"); // Verify that subclasses with and without prototype produce nice results. [ - [RegExp, ['foobar', 'g'], '/foobar/g'] + [RegExp, ['foobar', 'g'], '/foobar/g'], + [WeakSet, [[{}]], '{ }'], + [WeakMap, [[[{}, {}]]], '{ }'], + [BigInt64Array, [10], '[ 0n, 0n, 0n, 0n, 0n, 0n, 0n, 0n, 0n, 0n ]'] ].forEach(([base, input, rawExpected]) => { class Foo extends base {} const value = new Foo(...input);