We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eff1e9 commit d3af2fcCopy full SHA for d3af2fc
src/astring.js
@@ -80,11 +80,11 @@ export const EXPRESSIONS_PRECEDENCE = {
80
UpdateExpression: 16,
81
UnaryExpression: 15,
82
AwaitExpression: 15,
83
- YieldExpression: 15,
84
BinaryExpression: 14,
85
LogicalExpression: 13,
86
ConditionalExpression: 4,
87
AssignmentExpression: 3,
+ YieldExpression: 2,
88
RestElement: 1,
89
}
90
src/tests/fixtures/syntax/precedence.js
@@ -46,5 +46,7 @@ g = b + -+-a++;
46
await f().a;
47
yield 1;
48
yield 1 + 2;
49
+ (yield 1) + (yield 2);
50
+ yield a = b;
51
const c = yield 3;
52
});
0 commit comments