mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:45:06 +00:00
LibJS: Add String.prototype.toString()
This commit is contained in:
parent
6f3ea75569
commit
32c27afdf0
3 changed files with 22 additions and 5 deletions
9
Libraries/LibJS/Tests/String.prototype.toString.js
Normal file
9
Libraries/LibJS/Tests/String.prototype.toString.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
try {
|
||||
assert(String.prototype.toString.length === 0)
|
||||
assert("".toString() === "");
|
||||
assert("hello friends".toString() === "hello friends");
|
||||
|
||||
console.log("PASS");
|
||||
} catch (e) {
|
||||
console.log("FAIL: " + e);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue