Ensure build tests pass.

Former-commit-id: 9b91f0d884fe96dce1df34a6c0b659619276b83e
This commit is contained in:
John-David Dalton
2012-09-29 03:41:00 -07:00
parent a9dddb6066
commit 6a9efd8ac6
3 changed files with 8 additions and 5 deletions

View File

@@ -1031,7 +1031,7 @@
} }
} }
if (isLegacy) { if (isLegacy) {
_.each(['isBindFast', 'isKeysFast', 'isStrictFast', 'nativeBind', 'nativeIsArray', 'nativeKeys'], function(varName) { _.each(['isBindFast', 'isKeysFast', 'isStrictFast', 'nativeBind', 'nativeGetPrototypeOf', 'nativeIsArray', 'nativeKeys'], function(varName) {
source = replaceVar(source, varName, 'false'); source = replaceVar(source, varName, 'false');
}); });
@@ -1334,6 +1334,9 @@
if (isRemoved(source, 'isArray')) { if (isRemoved(source, 'isArray')) {
source = removeVar(source, 'nativeIsArray'); source = removeVar(source, 'nativeIsArray');
} }
if (isRemoved(source, 'isPlainObject')) {
source = removeVar(source, 'nativeGetPrototypeOf');
}
if (isRemoved(source, 'keys')) { if (isRemoved(source, 'keys')) {
source = removeFunction(source, 'shimKeys'); source = removeFunction(source, 'shimKeys');
} }
@@ -1359,7 +1362,7 @@
source = removeVar(source, 'isStrictFast'); source = removeVar(source, 'isStrictFast');
source = removeVar(source, 'nativeBind'); source = removeVar(source, 'nativeBind');
} }
if (isRemoved(source, 'createIterator', 'bind', 'isArray', 'keys')) { if (isRemoved(source, 'createIterator', 'bind', 'isArray', 'isPlainObject', 'keys')) {
source = removeVar(source, 'reNative'); source = removeVar(source, 'reNative');
} }
if (isRemoved(source, 'createIterator', 'isEmpty', 'isEqual')) { if (isRemoved(source, 'createIterator', 'isEmpty', 'isEqual')) {

View File

@@ -274,7 +274,7 @@
// remove whitespace from string literals // remove whitespace from string literals
source = source.replace(/'(?:(?=(\\?))\1.)*?'/g, function(string) { source = source.replace(/'(?:(?=(\\?))\1.)*?'/g, function(string) {
// avoids removing the '\n' of the `stringEscapes` object // avoids removing the '\n' of the `stringEscapes` object
return string.replace(/\[object |delete |else if|function | in |return\s+[\w']|throw |typeof |use strict|var |@ |'\\n'|\\\\n|\\n|\s+/g, function(match) { return string.replace(/\[object |delete |else if|else var |function | in |return\s+[\w']|throw |typeof |use strict|var |@ |'\\n'|\\\\n|\\n|\s+/g, function(match) {
return match == false || match == '\\n' ? '' : match; return match == false || match == '\\n' ? '' : match;
}); });
}); });

View File

@@ -523,8 +523,8 @@
'init': '{}', 'init': '{}',
'top': 'top':
'var isFunc = typeof callback == \'function\';\n' + 'var isFunc = typeof callback == \'function\';\n' +
'callback = createCallback(callback, thisArg);\n' + 'if (isFunc) callback = createCallback(callback, thisArg);\n' +
'if (!isFunc) var props = concat.apply(ArrayProto, arguments)', 'else var props = concat.apply(ArrayProto, arguments)',
'inLoop': 'inLoop':
'if (isFunc\n' + 'if (isFunc\n' +
' ? !callback(value, index, object)\n' + ' ? !callback(value, index, object)\n' +