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
commit 0243ac5d04
Notes: sideshowbarker 2024-07-19 07:44:34 +09:00
2 changed files with 0 additions and 6 deletions

View file

@ -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");

View file

@ -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");