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
Notes: sideshowbarker 2024-07-19 00:32:12 +09:00
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", () => {