mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:17:46 +00:00
LibJS: Add String constructor :^)
This commit is contained in:
parent
cb0dfd8f72
commit
6f3ea75569
5 changed files with 118 additions and 4 deletions
|
@ -1,8 +1,11 @@
|
|||
try {
|
||||
assert(typeof Object.getPrototypeOf("") === "object");
|
||||
assert(Object.getPrototypeOf("").valueOf() === '');
|
||||
assert(typeof Object.getPrototypeOf("") === "object");
|
||||
assert(Object.getPrototypeOf("").valueOf() === '');
|
||||
|
||||
console.log("PASS");
|
||||
assert(typeof String.prototype === "object");
|
||||
assert(String.prototype.valueOf() === '');
|
||||
|
||||
console.log("PASS");
|
||||
} catch (err) {
|
||||
console.log("FAIL: " + err);
|
||||
console.log("FAIL: " + err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue