Bug 1220565 - Remove non-standard comprehension from addon-sdk/. r=mossop

This commit is contained in:
simplyblue
2015-11-04 01:13:15 +05:30
parent 9b359b65f1
commit a9982d6b4f
8 changed files with 10 additions and 14 deletions

View File

@@ -90,7 +90,7 @@ function makeChildOptions(options) {
function makeStringArray(arrayOrValue) {
if (!arrayOrValue)
return [];
return [String(v) for (v of [].concat(arrayOrValue))];
return [].concat(arrayOrValue).map(String);
}
return {