1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:57:44 +00:00

LibJS: Remove mock String.prototype from tests

This commit is contained in:
Linus Groh 2020-04-10 14:38:59 +01:00 committed by Andreas Kling
parent 32c27afdf0
commit 0243ac5d04
2 changed files with 0 additions and 6 deletions

View file

@ -1,7 +1,4 @@
try {
// FIXME: Remove once we have the global String object
var String = { prototype: Object.getPrototypeOf("") };
assert(String.prototype.toLowerCase.length === 0);
assert("foo".toLowerCase() === "foo");

View file

@ -1,7 +1,4 @@
try {
// FIXME: Remove once we have the global String object
var String = { prototype: Object.getPrototypeOf("") };
assert(String.prototype.toUpperCase.length === 0);
assert("foo".toUpperCase() === "FOO");