mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-20 01:01:54 +00:00
LibJS: Fix old object numeric key test now that toString() is correct
This commit is contained in:
parent
d3524f47a0
commit
f603128e55
Notes:
sideshowbarker
2024-07-19 00:32:12 +09:00
Author: https://github.com/sunverwerth
Commit: f603128e55
Pull-request: https://github.com/SerenityOS/serenity/pull/3803
Reviewed-by: https://github.com/linusg
2 changed files with 4 additions and 7 deletions
|
@ -87,8 +87,7 @@ describe("correct behavior", () => {
|
|||
test("floating point keys", () => {
|
||||
const math = { 3.14: "pi" };
|
||||
expect(math["3.14"]).toBe("pi");
|
||||
// FIXME: Floating point literals are coerced to i32
|
||||
// expect(math[3.14]).toBe("pi");
|
||||
expect(math[3.14]).toBe("pi");
|
||||
});
|
||||
|
||||
test("keywords as property keys", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue