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:
parent
cb0dfd8f72
commit
6f3ea75569
Notes:
sideshowbarker
2024-07-19 07:44:41 +09:00
Author: https://github.com/awesomekling
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