1
Fork 0
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:
Idan Horowitz 2022-06-22 23:08:12 +03:00
parent 22a78e8a2c
commit a80d3fdf49
8 changed files with 39 additions and 18 deletions

View file

@ -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");
});
});