1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 14:25:08 +00:00

LibJS: Fix old object numeric key test now that toString() is correct

This commit is contained in:
Stephan Unverwerth 2020-12-27 01:27:10 +01:00 committed by Andreas Kling
parent d3524f47a0
commit f603128e55
2 changed files with 4 additions and 7 deletions

View file

@ -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", () => {