Skip to content

Commit

Permalink
ES6 generator: YieldExpression node should use argument property.
Browse files Browse the repository at this point in the history
  • Loading branch information
ariya committed May 13, 2015
1 parent 131bd8e commit 2c5d2c8
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion esprima.js
Original file line number Diff line number Diff line change
Expand Up @@ -2280,7 +2280,7 @@

finishYieldExpression: function (argument, delegate) {
this.type = Syntax.YieldExpression;
this.arguments = argument;
this.argument = argument;
this.delegate = delegate;
this.finish();
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
}
},
"type": "YieldExpression",
"arguments": {
"argument": {
"range": [
38,
39
Expand Down Expand Up @@ -278,4 +278,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
}
},
"type": "YieldExpression",
"arguments": {
"argument": {
"range": [
25,
26
Expand Down Expand Up @@ -128,4 +128,4 @@
"expression": false
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
}
},
"type": "YieldExpression",
"arguments": {
"argument": {
"range": [
24,
25
Expand Down Expand Up @@ -128,4 +128,4 @@
"expression": false
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
}
},
"type": "YieldExpression",
"arguments": {
"argument": {
"range": [
29,
30
Expand Down Expand Up @@ -182,4 +182,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
}
},
"type": "YieldExpression",
"arguments": {
"argument": {
"range": [
21,
22
Expand Down Expand Up @@ -128,4 +128,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
}
},
"type": "YieldExpression",
"arguments": {
"argument": {
"range": [
19,
20
Expand Down Expand Up @@ -186,4 +186,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
}
},
"type": "YieldExpression",
"arguments": {
"argument": {
"range": [
18,
19
Expand Down Expand Up @@ -186,4 +186,4 @@
}
}
]
}
}

0 comments on commit 2c5d2c8

Please sign in to comment.