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:
parent
d3524f47a0
commit
f603128e55
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