mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 03:42:07 +00:00
LibJS: Implement WeakMap changes from 'Symbol as WeakMap Keys Proposal'
This commit is contained in:
parent
22a78e8a2c
commit
a80d3fdf49
8 changed files with 39 additions and 18 deletions
|
@ -37,6 +37,6 @@ describe("regressions", () => {
|
|||
test("missing key/value properties on iterable entry", () => {
|
||||
expect(() => {
|
||||
new WeakMap([{}]);
|
||||
}).toThrowWithMessage(TypeError, "undefined is not an object");
|
||||
}).toThrowWithMessage(TypeError, "undefined cannot be held weakly");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue