Explorar o código

LibJS: Remove mock String.prototype from tests

Linus Groh %!s(int64=5) %!d(string=hai) anos
pai
achega
0243ac5d04

+ 0 - 3
Libraries/LibJS/Tests/String.prototype.toLowerCase.js

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

+ 0 - 3
Libraries/LibJS/Tests/String.prototype.toUpperCase.js

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