uglify-js
Advanced tools
Comparing version 3.14.2 to 3.14.3
@@ -146,3 +146,3 @@ /*********************************************************************** | ||
function string_template(text, props) { | ||
return text.replace(/\{([^}]+)\}/g, function(str, p) { | ||
return text.replace(/\{([^{}]+)\}/g, function(str, p) { | ||
var value = props[p]; | ||
@@ -149,0 +149,0 @@ return value instanceof AST_Node ? value.print_to_string() : value; |
@@ -6,3 +6,3 @@ { | ||
"license": "BSD-2-Clause", | ||
"version": "3.14.2", | ||
"version": "3.14.3", | ||
"engines": { | ||
@@ -9,0 +9,0 @@ "node": ">=0.8.0" |
@@ -1202,2 +1202,13 @@ UglifyJS 3 | ||
`Object.preventExtensions()` or `Object.seal()`). | ||
- If array destructuring is present, index-like properties in `Array.prototype` | ||
have not been overridden: | ||
```javascript | ||
Object.prototype[0] = 42; | ||
var [ a ] = []; | ||
var { 0: b } = {}; | ||
// 42 undefined | ||
console.log([][0], a); | ||
// 42 42 | ||
console.log({}[0], b); | ||
``` | ||
- Earlier versions of JavaScript will throw `SyntaxError` with the following: | ||
@@ -1204,0 +1215,0 @@ ```javascript |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1179414
29843
1366