Bug 1319936 - Remove String generics uses in dom. r=billm

--HG--
extra : rebase_source : f2b40e5d4a423035d2de8739570a76305a058cf0
This commit is contained in:
André Bargull 2016-11-24 13:17:00 -08:00
parent 75e7c1e895
commit 8843a98210
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=742156
/** Test for Bug 742156 **/
var nativeToString = ("" + String.replace).replace("replace", "EventTarget");
var nativeToString = ("" + String).replace("String", "EventTarget");
try {
var eventTargetToString = "" + EventTarget;
is(eventTargetToString, nativeToString,

View File

@ -182,7 +182,7 @@ function testStreamingOptions()
}
function arrayFromString(s) {
return s.split('').map(function(c){return String.charCodeAt(c)});
return s.split('').map(function(c){return c.charCodeAt(0)});
}
function testArrayOfStrings(test)

View File

@ -673,7 +673,7 @@ function runTest() {
reqHeaders =
escape(Object.keys(test.headers)
.filter(isUnsafeHeader)
.map(String.toLowerCase)
.map(s => s.toLowerCase())
.sort()
.join(","));
req.url += reqHeaders ? "&requestHeaders=" + reqHeaders : "";

View File

@ -759,7 +759,7 @@ function testModeCors() {
reqHeaders =
escape(Object.keys(test.headers)
.filter(isUnsafeHeader)
.map(String.toLowerCase)
.map(s => s.toLowerCase())
.sort()
.join(","));
req.url += reqHeaders ? "&requestHeaders=" + reqHeaders : "";