Update vendor/uglifyjs.

Former-commit-id: 36cfce5048198ccb9f0a24a9021742afe60316b5
This commit is contained in:
John-David Dalton
2013-02-03 01:48:11 -08:00
parent d2a7589f7c
commit f3a2f5018a
2 changed files with 21 additions and 21 deletions

View File

@@ -1347,47 +1347,47 @@
// the path to the source file // the path to the source file
var filePath = path.join(__dirname, 'lodash.js'); var filePath = path.join(__dirname, 'lodash.js');
// flag used to specify a Backbone build // flag to specify a Backbone build
var isBackbone = options.indexOf('backbone') > -1; var isBackbone = options.indexOf('backbone') > -1;
// flag used to specify a Content Security Policy build // flag to specify a Content Security Policy build
var isCSP = options.indexOf('csp') > -1 || options.indexOf('CSP') > -1; var isCSP = options.indexOf('csp') > -1 || options.indexOf('CSP') > -1;
// flag used to specify only creating the debug build // flag to specify only creating the debug build
var isDebug = options.indexOf('-d') > -1 || options.indexOf('--debug') > -1; var isDebug = options.indexOf('-d') > -1 || options.indexOf('--debug') > -1;
// flag used to indicate that a custom IIFE was specified // flag to indicate that a custom IIFE was specified
var isIIFE = typeof iife == 'string'; var isIIFE = typeof iife == 'string';
// flag used to specify creating a source map for the minified source // flag to specify creating a source map for the minified source
var isMapped = options.indexOf('-p') > -1 || options.indexOf('--source-map') > -1; var isMapped = options.indexOf('-p') > -1 || options.indexOf('--source-map') > -1;
// flag used to specify only creating the minified build // flag to specify only creating the minified build
var isMinify = options.indexOf('-m') > -1 || options.indexOf('--minify') > -1; var isMinify = options.indexOf('-m') > -1 || options.indexOf('--minify') > -1;
// flag used to specify a mobile build // flag to specify a mobile build
var isMobile = options.indexOf('mobile') > -1; var isMobile = options.indexOf('mobile') > -1;
// flag used to specify a modern build // flag to specify a modern build
var isModern = isCSP || isMobile || options.indexOf('modern') > -1; var isModern = isCSP || isMobile || options.indexOf('modern') > -1;
// flag used to specify a modularize build // flag to specify a modularize build
var isModularize = options.indexOf('modularize') > -1; var isModularize = options.indexOf('modularize') > -1;
// flag used to specify writing output to standard output // flag to specify writing output to standard output
var isStdOut = options.indexOf('-c') > -1 || options.indexOf('--stdout') > -1; var isStdOut = options.indexOf('-c') > -1 || options.indexOf('--stdout') > -1;
// flag used to specify skipping status updates normally logged to the console // flag to specify skipping status updates normally logged to the console
var isSilent = isStdOut || options.indexOf('-s') > -1 || options.indexOf('--silent') > -1; var isSilent = isStdOut || options.indexOf('-s') > -1 || options.indexOf('--silent') > -1;
// flag used to specify `_.assign`, `_.bindAll`, and `_.defaults` are // flag to specify `_.assign`, `_.bindAll`, and `_.defaults` are
// constructed using the "use strict" directive // constructed using the "use strict" directive
var isStrict = options.indexOf('strict') > -1; var isStrict = options.indexOf('strict') > -1;
// flag used to specify an Underscore build // flag to specify an Underscore build
var isUnderscore = isBackbone || options.indexOf('underscore') > -1; var isUnderscore = isBackbone || options.indexOf('underscore') > -1;
// flag used to specify a legacy build // flag to specify a legacy build
var isLegacy = !(isModern || isUnderscore) && options.indexOf('legacy') > -1; var isLegacy = !(isModern || isUnderscore) && options.indexOf('legacy') > -1;
// used to specify methods of specific categories // used to specify methods of specific categories
@@ -1436,22 +1436,22 @@
'moduleId': moduleId 'moduleId': moduleId
})); }));
// flag used to specify a template build // flag to specify a template build
var isTemplate = !!templatePattern; var isTemplate = !!templatePattern;
// the lodash.js source // the lodash.js source
var source = fs.readFileSync(filePath, 'utf8'); var source = fs.readFileSync(filePath, 'utf8');
// flag used to specify replacing Lo-Dash's `_.clone` with Underscore's // flag to specify replacing Lo-Dash's `_.clone` with Underscore's
var useUnderscoreClone = isUnderscore; var useUnderscoreClone = isUnderscore;
// flags used to specify exposing Lo-Dash methods in an Underscore build // flags to specify exposing Lo-Dash methods in an Underscore build
var exposeAssign = !isUnderscore, var exposeAssign = !isUnderscore,
exposeForIn = !isUnderscore, exposeForIn = !isUnderscore,
exposeForOwn = !isUnderscore, exposeForOwn = !isUnderscore,
exposeIsPlainObject = !isUnderscore; exposeIsPlainObject = !isUnderscore;
// flags used to specify export options // flags to specify export options
var isAMD = exportsOptions.indexOf('amd') > -1, var isAMD = exportsOptions.indexOf('amd') > -1,
isCommonJS = exportsOptions.indexOf('commonjs') > -1, isCommonJS = exportsOptions.indexOf('commonjs') > -1,
isGlobal = exportsOptions.indexOf('global') > -1, isGlobal = exportsOptions.indexOf('global') > -1,
@@ -2364,10 +2364,10 @@
/*------------------------------------------------------------------------*/ /*------------------------------------------------------------------------*/
// flag used to track if `outputPath` has been used by `callback` // flag to track if `outputPath` has been used by `callback`
var outputUsed = false; var outputUsed = false;
// flag used to specify creating a custom build // flag to specify creating a custom build
var isCustom = isLegacy || isMapped || isMobile || isModern || isStrict || isUnderscore || var isCustom = isLegacy || isMapped || isMobile || isModern || isStrict || isUnderscore ||
/(?:category|exclude|exports|iife|include|minus|plus)=/.test(options) || /(?:category|exclude|exports|iife|include|minus|plus)=/.test(options) ||
!_.isEqual(exportsOptions, exportsAll); !_.isEqual(exportsOptions, exportsAll);

View File

@@ -18,7 +18,7 @@
var closureId = 'c92fd8f7f2b2096eb910c99d10ede0ec25d3c3cc'; var closureId = 'c92fd8f7f2b2096eb910c99d10ede0ec25d3c3cc';
/** The Git object ID of `uglifyjs.tar.gz` */ /** The Git object ID of `uglifyjs.tar.gz` */
var uglifyId = '577c2dfdf72c0310d2a560976696c07894943079'; var uglifyId = 'db14216975ad703f8b903a9c4bbcfe9ecb824c61';
/** The path of the directory that is the base of the repository */ /** The path of the directory that is the base of the repository */
var basePath = fs.realpathSync(path.join(__dirname, '..')); var basePath = fs.realpathSync(path.join(__dirname, '..'));