Make modern build pass unit tests again.

Former-commit-id: 6269bdbaa7cd96217568504921da097c2352cef8
This commit is contained in:
John-David Dalton
2013-03-13 10:13:59 -07:00
parent 59f78c16b1
commit ac5d2a714e
3 changed files with 13 additions and 10 deletions

View File

@@ -1873,6 +1873,9 @@
}
else if (/^(?:max|min)$/.test(methodName)) {
match = match.replace(/\beach\(/, 'forEach(');
if (!isUnderscore) {
return match;
}
}
return match.replace(/^(( *)if *\(.*?\bisArray\([^\)]+\).*?\) *{\n)(( *)var index[^;]+.+\n+)/m, function(snippet, statement, indent, vars) {
vars = vars