1
Fork 0
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:
Linus Groh 2020-04-10 14:23:01 +01:00 committed by Andreas Kling
parent 6f3ea75569
commit 32c27afdf0
3 changed files with 22 additions and 5 deletions

View 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);
}