1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:17:35 +00:00

LibJS: Removed a fixme in a test of BigInt.prototype.valueOf

This commit is contained in:
tuqqu 2021-04-11 20:25:42 +03:00 committed by Andreas Kling
parent 4d81d868c7
commit 5438879277

View file

@ -1,8 +1,7 @@
test("basic functionality", () => { test("basic functionality", () => {
expect(BigInt.prototype.valueOf).toHaveLength(0); expect(BigInt.prototype.valueOf).toHaveLength(0);
expect(typeof BigInt(123).valueOf()).toBe("bigint"); expect(typeof BigInt(123).valueOf()).toBe("bigint");
// FIXME: Uncomment once we support Object() with argument expect(typeof Object(123n).valueOf()).toBe("bigint");
// expect(typeof Object(123n).valueOf()).toBe("bigint");
}); });
test("calling with non-BigInt |this|", () => { test("calling with non-BigInt |this|", () => {