From d29d9173c10386c728a5b8fdc497f72d9736d1ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Sat, 24 Aug 2019 13:59:31 +0200 Subject: [PATCH] Update tests --- .../es2015/uncategorised/233/input.js | 2 +- .../es2015/uncategorised/233/output.json | 29 +++++++++---------- .../es2015/uncategorised/234/input.js | 2 +- .../es2015/uncategorised/234/output.json | 29 +++++++++---------- 4 files changed, 30 insertions(+), 32 deletions(-) diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/233/input.js b/packages/babel-parser/test/fixtures/es2015/uncategorised/233/input.js index 40ac1e2b4639..7afe6af895a0 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/233/input.js +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/233/input.js @@ -1 +1 @@ -"use strict"; ({ v: eval }) = obj \ No newline at end of file +"use strict"; ({ v: eval } = obj) \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/233/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/233/output.json index 1fbc3ac656a7..bd58e38aa176 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/233/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/233/output.json @@ -13,8 +13,7 @@ } }, "errors": [ - "SyntaxError: Assigning to 'eval' in strict mode (1:20)", - "SyntaxError: You're trying to assign to a parenthesized expression, eg. instead of `({a}) = 0` use `({a} = 0)` (1:15)" + "SyntaxError: Assigning to 'eval' in strict mode (1:20)" ], "program": { "type": "Program", @@ -49,16 +48,16 @@ }, "expression": { "type": "AssignmentExpression", - "start": 14, - "end": 33, + "start": 15, + "end": 32, "loc": { "start": { "line": 1, - "column": 14 + "column": 15 }, "end": { "line": 1, - "column": 33 + "column": 32 } }, "operator": "=", @@ -129,28 +128,28 @@ "name": "eval" } } - ], - "extra": { - "parenthesized": true, - "parenStart": 14 - } + ] }, "right": { "type": "Identifier", - "start": 30, - "end": 33, + "start": 29, + "end": 32, "loc": { "start": { "line": 1, - "column": 30 + "column": 29 }, "end": { "line": 1, - "column": 33 + "column": 32 }, "identifierName": "obj" }, "name": "obj" + }, + "extra": { + "parenthesized": true, + "parenStart": 14 } } } diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/234/input.js b/packages/babel-parser/test/fixtures/es2015/uncategorised/234/input.js index cb924f3bb153..2e399474efe9 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/234/input.js +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/234/input.js @@ -1 +1 @@ -"use strict"; ({ v: arguments }) = obj \ No newline at end of file +"use strict"; ({ v: arguments } = obj) \ No newline at end of file diff --git a/packages/babel-parser/test/fixtures/es2015/uncategorised/234/output.json b/packages/babel-parser/test/fixtures/es2015/uncategorised/234/output.json index ada5ea9281b8..60d3496c8663 100644 --- a/packages/babel-parser/test/fixtures/es2015/uncategorised/234/output.json +++ b/packages/babel-parser/test/fixtures/es2015/uncategorised/234/output.json @@ -13,8 +13,7 @@ } }, "errors": [ - "SyntaxError: Assigning to 'arguments' in strict mode (1:20)", - "SyntaxError: You're trying to assign to a parenthesized expression, eg. instead of `({a}) = 0` use `({a} = 0)` (1:15)" + "SyntaxError: Assigning to 'arguments' in strict mode (1:20)" ], "program": { "type": "Program", @@ -49,16 +48,16 @@ }, "expression": { "type": "AssignmentExpression", - "start": 14, - "end": 38, + "start": 15, + "end": 37, "loc": { "start": { "line": 1, - "column": 14 + "column": 15 }, "end": { "line": 1, - "column": 38 + "column": 37 } }, "operator": "=", @@ -129,28 +128,28 @@ "name": "arguments" } } - ], - "extra": { - "parenthesized": true, - "parenStart": 14 - } + ] }, "right": { "type": "Identifier", - "start": 35, - "end": 38, + "start": 34, + "end": 37, "loc": { "start": { "line": 1, - "column": 35 + "column": 34 }, "end": { "line": 1, - "column": 38 + "column": 37 }, "identifierName": "obj" }, "name": "obj" + }, + "extra": { + "parenthesized": true, + "parenStart": 14 } } }