1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

LibJS: Add String constructor :^)

This commit is contained in:
Andreas Kling 2020-04-10 14:14:02 +02:00
parent cb0dfd8f72
commit 6f3ea75569
Notes: sideshowbarker 2024-07-19 07:44:41 +09:00
5 changed files with 118 additions and 4 deletions

View file

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