Skip to content

Commit

Permalink
Add some missing properties to test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Oct 28, 2017
1 parent 0090c67 commit 62444e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion test/tests-asyncawait.js
Expand Up @@ -3099,7 +3099,8 @@ test(
body: [{
type: "IfStatement",
consequent: {
type: "FunctionDeclaration"
type: "FunctionDeclaration",
async: true
},
alternate: null
}]
Expand Down
12 changes: 8 additions & 4 deletions test/tests-harmony.js
Expand Up @@ -13183,7 +13183,8 @@ test("() => 42", {
body: [{
type: "ExpressionStatement",
expression: {
type: "ArrowFunctionExpression"
type: "ArrowFunctionExpression",
expression: true
}
}]
}, {ecmaVersion: 6, preserveParens: true});
Expand Down Expand Up @@ -14536,7 +14537,8 @@ test("(([,]) => 0)", {
type: "Literal",
value: 0,
raw: "0"
}
},
expression: true
}
}]
}, {ecmaVersion: 6});
Expand Down Expand Up @@ -15603,7 +15605,8 @@ test("function *f() { yield\n{}/1/g\n}", {
"type": "ExpressionStatement",
"expression": {
"type": "YieldExpression",
"argument": null
"argument": null,
delegate: false
}
},
{
Expand All @@ -15622,7 +15625,8 @@ test("function *f() { yield\n{}/1/g\n}", {
}
}
]
}
},
generator: true
}
]
}, {ecmaVersion: 6})
Expand Down
2 changes: 1 addition & 1 deletion test/tests.js
Expand Up @@ -28966,7 +28966,7 @@ test('var x = (1 + 2)', {}, {
}
},
{
type: {binop: 9, prefix: true, beforeExpr: true},
type: tokTypes.plusMin,
value: "+",
loc: {
start: {line: 1, column: 11},
Expand Down

0 comments on commit 62444e4

Please sign in to comment.