mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 06:18:12 +00:00
LibJS: Implement Symbol.toStringTag
This commit is contained in:
parent
5ecd504f4e
commit
43d955014d
11 changed files with 55 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
test("basic functionality", () => {
|
||||
expect(BigInt.prototype[Symbol.toStringTag]).toBe("BigInt");
|
||||
});
|
|
@ -0,0 +1,4 @@
|
|||
test("basic functionality", () => {
|
||||
expect(JSON[Symbol.toStringTag]).toBe("JSON");
|
||||
expect(JSON.toString()).toBe("[object JSON]");
|
||||
});
|
|
@ -0,0 +1,4 @@
|
|||
test("basic functionality", () => {
|
||||
expect(Math[Symbol.toStringTag]).toBe("Math");
|
||||
expect(Math.toString()).toBe("[object Math]");
|
||||
});
|
|
@ -0,0 +1,3 @@
|
|||
test("basic functionality", () => {
|
||||
expect(Symbol.prototype[Symbol.toStringTag]).toBe("Symbol");
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue