diff --git a/src/parser/lval.js b/src/parser/lval.js index 265aa90cf0..b8ee7bc63f 100644 --- a/src/parser/lval.js +++ b/src/parser/lval.js @@ -152,7 +152,6 @@ pp.parseMaybeDefault = function (startPos, startLoc, left) { if (!this.eat(tt.eq)) return left; let node = this.startNodeAt(startPos, startLoc); - node.operator = "="; node.left = left; node.right = this.parseMaybeAssign(); return this.finishNode(node, "AssignmentPattern"); diff --git a/test/fixtures/harmony/uncategorised/152/expected.json b/test/fixtures/harmony/uncategorised/152/expected.json index 23d4429400..045e5e565d 100644 --- a/test/fixtures/harmony/uncategorised/152/expected.json +++ b/test/fixtures/harmony/uncategorised/152/expected.json @@ -75,7 +75,6 @@ "column": 20 } }, - "operator": "=", "left": { "type": "ArrayPattern", "start": 11, @@ -166,4 +165,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/153/expected.json b/test/fixtures/harmony/uncategorised/153/expected.json index a64f77173c..2fbb48c993 100644 --- a/test/fixtures/harmony/uncategorised/153/expected.json +++ b/test/fixtures/harmony/uncategorised/153/expected.json @@ -75,7 +75,6 @@ "column": 24 } }, - "operator": "=", "left": { "type": "ObjectPattern", "start": 11, @@ -236,4 +235,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/154/expected.json b/test/fixtures/harmony/uncategorised/154/expected.json index b569d01097..5c0d184dea 100644 --- a/test/fixtures/harmony/uncategorised/154/expected.json +++ b/test/fixtures/harmony/uncategorised/154/expected.json @@ -105,7 +105,6 @@ "column": 26 } }, - "operator": "=", "left": { "type": "ObjectPattern", "start": 13, @@ -268,4 +267,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/155/expected.json b/test/fixtures/harmony/uncategorised/155/expected.json index c4be10f5a3..446945cf11 100644 --- a/test/fixtures/harmony/uncategorised/155/expected.json +++ b/test/fixtures/harmony/uncategorised/155/expected.json @@ -122,7 +122,6 @@ "column": 27 } }, - "operator": "=", "left": { "type": "ObjectPattern", "start": 14, @@ -289,4 +288,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/156/expected.json b/test/fixtures/harmony/uncategorised/156/expected.json index c724ba84e8..f1b3b84818 100644 --- a/test/fixtures/harmony/uncategorised/156/expected.json +++ b/test/fixtures/harmony/uncategorised/156/expected.json @@ -123,7 +123,6 @@ "column": 17 } }, - "operator": "=", "left": { "type": "ObjectPattern", "start": 4, @@ -289,4 +288,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/157/expected.json b/test/fixtures/harmony/uncategorised/157/expected.json index 4b8376ff69..8f9e16207b 100644 --- a/test/fixtures/harmony/uncategorised/157/expected.json +++ b/test/fixtures/harmony/uncategorised/157/expected.json @@ -138,7 +138,6 @@ "column": 23 } }, - "operator": "=", "left": { "type": "ObjectPattern", "start": 10, @@ -305,4 +304,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/159/expected.json b/test/fixtures/harmony/uncategorised/159/expected.json index a30c8b7a8e..1f57c33a36 100644 --- a/test/fixtures/harmony/uncategorised/159/expected.json +++ b/test/fixtures/harmony/uncategorised/159/expected.json @@ -105,7 +105,6 @@ "column": 18 } }, - "operator": "=", "left": { "type": "Identifier", "start": 13, @@ -164,4 +163,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/160/expected.json b/test/fixtures/harmony/uncategorised/160/expected.json index 388179a9da..b9dcf3ed65 100644 --- a/test/fixtures/harmony/uncategorised/160/expected.json +++ b/test/fixtures/harmony/uncategorised/160/expected.json @@ -75,7 +75,6 @@ "column": 16 } }, - "operator": "=", "left": { "type": "Identifier", "start": 11, @@ -132,4 +131,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/161/expected.json b/test/fixtures/harmony/uncategorised/161/expected.json index 44bf75a551..50711e7b4a 100644 --- a/test/fixtures/harmony/uncategorised/161/expected.json +++ b/test/fixtures/harmony/uncategorised/161/expected.json @@ -153,7 +153,6 @@ "column": 21 } }, - "operator": "=", "left": { "type": "Identifier", "start": 18, @@ -216,4 +215,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/162/expected.json b/test/fixtures/harmony/uncategorised/162/expected.json index bc6aa6ab7d..5ba4e49328 100644 --- a/test/fixtures/harmony/uncategorised/162/expected.json +++ b/test/fixtures/harmony/uncategorised/162/expected.json @@ -154,7 +154,6 @@ "column": 11 } }, - "operator": "=", "left": { "type": "Identifier", "start": 8, @@ -216,4 +215,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/300/expected.json b/test/fixtures/harmony/uncategorised/300/expected.json index ba241b2787..c19f8b6668 100644 --- a/test/fixtures/harmony/uncategorised/300/expected.json +++ b/test/fixtures/harmony/uncategorised/300/expected.json @@ -91,7 +91,6 @@ "column": 25 } }, - "operator": "=", "left": { "type": "Identifier", "start": 19, @@ -147,4 +146,4 @@ } ] } -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/304/expected.json b/test/fixtures/harmony/uncategorised/304/expected.json index 455984bf89..8fb4b5b979 100644 --- a/test/fixtures/harmony/uncategorised/304/expected.json +++ b/test/fixtures/harmony/uncategorised/304/expected.json @@ -119,7 +119,6 @@ "column": 38 } }, - "operator": "=", "left": { "type": "Identifier", "start": 15, @@ -180,4 +179,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/305/expected.json b/test/fixtures/harmony/uncategorised/305/expected.json index d0caf950d9..a47eedc258 100644 --- a/test/fixtures/harmony/uncategorised/305/expected.json +++ b/test/fixtures/harmony/uncategorised/305/expected.json @@ -120,7 +120,6 @@ "column": 28 } }, - "operator": "=", "left": { "type": "Identifier", "start": 5, @@ -180,4 +179,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/306/expected.json b/test/fixtures/harmony/uncategorised/306/expected.json index bfa5d16bc1..7a38265d31 100644 --- a/test/fixtures/harmony/uncategorised/306/expected.json +++ b/test/fixtures/harmony/uncategorised/306/expected.json @@ -86,7 +86,6 @@ "column": 28 } }, - "operator": "=", "left": { "type": "Identifier", "start": 5, @@ -145,4 +144,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/307/expected.json b/test/fixtures/harmony/uncategorised/307/expected.json index 6dbf417ffe..1fca349af8 100644 --- a/test/fixtures/harmony/uncategorised/307/expected.json +++ b/test/fixtures/harmony/uncategorised/307/expected.json @@ -120,7 +120,6 @@ "column": 7 } }, - "operator": "=", "left": { "type": "Identifier", "start": 2, @@ -181,4 +180,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/308/expected.json b/test/fixtures/harmony/uncategorised/308/expected.json index 394ef8f378..dcfb5844b9 100644 --- a/test/fixtures/harmony/uncategorised/308/expected.json +++ b/test/fixtures/harmony/uncategorised/308/expected.json @@ -123,7 +123,6 @@ "column": 7 } }, - "operator": "=", "left": { "type": "Identifier", "start": 2, @@ -184,4 +183,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/309/expected.json b/test/fixtures/harmony/uncategorised/309/expected.json index c9fa8ee649..274eb057e7 100644 --- a/test/fixtures/harmony/uncategorised/309/expected.json +++ b/test/fixtures/harmony/uncategorised/309/expected.json @@ -199,7 +199,6 @@ "column": 14 } }, - "operator": "=", "left": { "type": "Identifier", "start": 9, @@ -265,4 +264,4 @@ ] }, "comments": [] -} \ No newline at end of file +} diff --git a/test/fixtures/harmony/uncategorised/310/expected.json b/test/fixtures/harmony/uncategorised/310/expected.json index a334d92bdf..6b94dc1312 100644 --- a/test/fixtures/harmony/uncategorised/310/expected.json +++ b/test/fixtures/harmony/uncategorised/310/expected.json @@ -105,7 +105,6 @@ "column": 11 } }, - "operator": "=", "left": { "type": "Identifier", "start": 6, @@ -179,4 +178,4 @@ ] }, "comments": [] -} \ No newline at end of file +}