mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
LibJS: Fix old object numeric key test now that toString() is correct
This commit is contained in:
committed by
Andreas Kling
parent
d3524f47a0
commit
f603128e55
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user