Update vendors.

Former-commit-id: aff34ccd5d3c6e3e78aeb5832e694171fca35412
This commit is contained in:
John-David Dalton
2013-02-12 00:24:55 -08:00
parent d287ecbb34
commit 8024a25f2b
6 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
/*!
* Benchmark.js v1.0.0 <http://benchmarkjs.com/>
* Copyright 2010-2012 Mathias Bynens <http://mths.be/>
* Copyright 2010-2013 Mathias Bynens <http://mths.be/>
* Based on JSLitmus.js, copyright Robert Kieffer <http://broofa.com/>
* Modified by John-David Dalton <http://allyoucanleet.com/>
* Available under MIT license <http://mths.be/mit>
@@ -990,7 +990,7 @@
result = String(fn);
} else if (support.decompilation) {
// escape the `{` for Firefox 1
result = (/^[^{]+\{([\s\S]*)}\s*$/.exec(fn) || 0)[1];
result = (/^[^{]+\{([\s\S]*)\}\s*$/.exec(fn) || 0)[1];
}
// trim string
result = (result || '').replace(/^\s+|\s+$/g, '');
@@ -1649,7 +1649,7 @@
forOwn(object, function(value, key) {
// escape regexp special characters in `key`
string = string.replace(
RegExp('#\\{' + key.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1') + '\\}', 'g'),
RegExp('#\\{' + key.replace(/([.*+?^${}()|[\]\\])/g, '\\$1') + '\\}', 'g'),
value.replace(/\$/g, '$$$$')
);
});