mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibJS: Implement WeakMap changes from 'Symbol as WeakMap Keys Proposal'
This commit is contained in:
parent
22a78e8a2c
commit
a80d3fdf49
Notes:
sideshowbarker
2024-07-17 11:30:05 +09:00
Author: https://github.com/IdanHo
Commit: a80d3fdf49
Pull-request: https://github.com/SerenityOS/serenity/pull/14361
Reviewed-by: https://github.com/alimpfard ✅
Reviewed-by: https://github.com/linusg ✅
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