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
commit a80d3fdf49
Notes: sideshowbarker 2024-07-17 11:30:05 +09:00
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");
});
});