1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

LibJS: Implement WeakSet changes from 'Symbol as WeakMap Keys Proposal'

This commit is contained in:
Idan Horowitz 2022-06-22 23:09:31 +03:00
parent a80d3fdf49
commit dbd0110721
5 changed files with 32 additions and 16 deletions

View file

@ -24,7 +24,7 @@ describe("normal behavior", () => {
});
test("constructor with single array argument", () => {
var a = new WeakSet([{ a: 1 }, { a: 2 }, { a: 3 }]);
var a = new WeakSet([{ a: 1 }, { a: 2 }, { a: 3 }, Symbol("foo")]);
expect(a instanceof WeakSet).toBeTrue();
});
});