1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

LibJS: Add String.prototype.toLowerCase()

This commit is contained in:
Andreas Kling 2020-04-06 20:46:08 +02:00
parent 220ecde626
commit cb18b2c74d
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,11 @@
try {
assert("foo".toLowerCase() === "foo");
assert("Foo".toLowerCase() === "foo");
assert("FOO".toLowerCase() === "foo");
assert(('b' + 'a' + + 'a' + 'a').toLowerCase() === "banana");
console.log("PASS");
} catch (e) {
console.log("FAIL: " + e);
}