summaryrefslogtreecommitdiff
path: root/Libraries/LibJS
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-04-10 14:38:59 +0100
committerAndreas Kling <kling@serenityos.org>2020-04-10 15:51:39 +0200
commit0243ac5d049c5fa53979b47125d15fa6265c5243 (patch)
tree368d3412240b2208d7cf825c95451c88001c3238 /Libraries/LibJS
parent32c27afdf04938762e16fcdf3ae06a38a286090c (diff)
downloadserenity-0243ac5d049c5fa53979b47125d15fa6265c5243.zip
LibJS: Remove mock String.prototype from tests
Diffstat (limited to 'Libraries/LibJS')
-rw-r--r--Libraries/LibJS/Tests/String.prototype.toLowerCase.js3
-rw-r--r--Libraries/LibJS/Tests/String.prototype.toUpperCase.js3
2 files changed, 0 insertions, 6 deletions
diff --git a/Libraries/LibJS/Tests/String.prototype.toLowerCase.js b/Libraries/LibJS/Tests/String.prototype.toLowerCase.js
index f0969cfaf7..a1f6b58993 100644
--- a/Libraries/LibJS/Tests/String.prototype.toLowerCase.js
+++ b/Libraries/LibJS/Tests/String.prototype.toLowerCase.js
@@ -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");
diff --git a/Libraries/LibJS/Tests/String.prototype.toUpperCase.js b/Libraries/LibJS/Tests/String.prototype.toUpperCase.js
index 98dba73e5f..2a68e1e770 100644
--- a/Libraries/LibJS/Tests/String.prototype.toUpperCase.js
+++ b/Libraries/LibJS/Tests/String.prototype.toUpperCase.js
@@ -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");