From 0805eca97904ca25696f98ba9e38990644e1f814 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 9 Sep 2012 14:11:46 -0700 Subject: [PATCH] Remove `Object.keys` optimization from the "legacy" build `iteratorTemplate`. Former-commit-id: 5a63b627c4982ca43a46a830722513cab2c7b633 --- build.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.js b/build.js index 252d4d042..6227e7888 100755 --- a/build.js +++ b/build.js @@ -780,10 +780,12 @@ } } if (isLegacy) { - source = replaceVar(source, 'noArgsClass', 'true'); ['isBindFast', 'isKeysFast', 'isStrictFast', 'nativeBind', 'nativeIsArray', 'nativeKeys'].forEach(function(varName) { source = replaceVar(source, varName, 'false'); }); + + source = replaceVar(source, 'noArgsClass', 'true'); + source = removeKeysOptimization(source); } else if (isUnderscore) { // remove `deep` clone functionality @@ -811,6 +813,7 @@ } if (isMobile) { source = replaceVar(source, 'isKeysFast', 'false'); + source = removeKeysOptimization(source); // remove Opera 10.53-10.60 JIT fixes source = source.replace(/length *> *-1 *&& *length/g, 'length'); @@ -1073,7 +1076,6 @@ source = removeVar(source, 'reNative'); source = removeFromCreateIterator(source, 'nativeKeys'); - source = removeKeysOptimization(source); } if (isMobile) { @@ -1122,7 +1124,6 @@ source = removeVar(source, 'iteratorTemplate'); source = removeVar(source, 'noArraySliceOnStrings'); source = removeVar(source, 'noCharByIndex'); - source = removeKeysOptimization(source); source = removeNoNodeClass(source); } else {