summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/acorn/dist/acorn.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/acorn/dist/acorn.js')
-rw-r--r--tools/node_modules/eslint/node_modules/acorn/dist/acorn.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/node_modules/eslint/node_modules/acorn/dist/acorn.js b/tools/node_modules/eslint/node_modules/acorn/dist/acorn.js
index 9f2447cff5..df8576ac4e 100644
--- a/tools/node_modules/eslint/node_modules/acorn/dist/acorn.js
+++ b/tools/node_modules/eslint/node_modules/acorn/dist/acorn.js
@@ -325,7 +325,7 @@ var defaultOptions = {
sourceType: "script",
// `onInsertedSemicolon` can be a callback that will be called
// when a semicolon is automatically inserted. It will be passed
- // th position of the comma as an offset, and if `locations` is
+ // the position of the comma as an offset, and if `locations` is
// enabled, it is given the location as a `{line, column}` object
// as second argument.
onInsertedSemicolon: null,
@@ -755,7 +755,8 @@ pp$1.isLet = function() {
skipWhiteSpace.lastIndex = this.pos;
var skip = skipWhiteSpace.exec(this.input);
var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
- if (nextCh === 91 || nextCh === 123) { return true } // '{' and '['
+ if (nextCh === 123 && !lineBreak.test(this.input.slice(this.end, next)) // '{'
+ || nextCh === 91) { return true } // '['
if (isIdentifierStart(nextCh, true)) {
var pos = next + 1;
while (isIdentifierChar(this.input.charCodeAt(pos), true)) { ++pos; }
@@ -1645,7 +1646,7 @@ pp$2.toAssignable = function(node, isBinding, refDestructuringErrors) {
break
case "ParenthesizedExpression":
- this.toAssignable(node.expression, isBinding);
+ this.toAssignable(node.expression, isBinding, refDestructuringErrors);
break
case "MemberExpression":
@@ -5275,7 +5276,7 @@ pp$8.readWord = function() {
//
// [walk]: util/walk.js
-var version = "6.0.4";
+var version = "6.0.5";
// The main exported interface (under `self.acorn` when in the
// browser) is a `parse` function that takes a code string and