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:
parent
a80d3fdf49
commit
dbd0110721
5 changed files with 32 additions and 16 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue