mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
LibJS: Add String.prototype.toString()
This commit is contained in:
parent
6f3ea75569
commit
32c27afdf0
Notes:
sideshowbarker
2024-07-19 07:44:38 +09:00
Author: https://github.com/linusg
Commit: 32c27afdf0
Pull-request: https://github.com/SerenityOS/serenity/pull/1729
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