Update vendors.

Former-commit-id: 43e57a1a75bdd66e95d3608f180514cfe5e0075c
This commit is contained in:
John-David Dalton
2013-04-14 01:15:04 -07:00
parent 5d73c8f002
commit b3f64abfae
47 changed files with 9 additions and 15 deletions

View File

@@ -19,10 +19,10 @@
path = util.path;
/** The Git object ID of `closure-compiler.tar.gz` */
var closureId = 'a95a8007892aa824ce90c6aa3d3abb0489bf0fff';
var closureId = '2e26bef0e10fc67f2c8c9f67b8662e3b4455db4f';
/** The Git object ID of `uglifyjs.tar.gz` */
var uglifyId = '41308bd569db41a32d4f08af115875d0342e8bfb';
var uglifyId = '783d9b732c6c644ef2b5c8b337b0652bf0af27cd';
/** The path of the directory that is the base of the repository */
var basePath = fs.realpathSync(path.join(__dirname, '..'));

View File

@@ -27,14 +27,8 @@
// remove copyright header
source = source.replace(/^\/\**[\s\S]+?\*\/\n/, '');
// correct overly aggressive Closure Compiler advanced optimizations
source = source
.replace(/prototype\s*=\s*{\s*valueOf\s*:\s*1\s*}/, 'prototype={valueOf:1,y:1}')
.replace(/(document[^&]+&&)\s*(?:\w+|!\d)/, '$1!({toString:0}+"")')
source = source.replace(/(\w+\.prototype\s*=\s*)\w+(?=\.prototype;)/, function(match, left) {
return left + /\w+(?=\.VERSION)/.exec(source);
});
// correct overly aggressive Closure Compiler advanced optimization
source = source.replace(/(document[^&]+&&)\s*(?:\w+|!\d)/, '$1!({toString:0}+"")');
// flip `typeof` expressions to help optimize Safari and
// correct the AMD module definition for AMD build optimizers