blob: 2217401cc5a571a3130833b010ce3e1e358b3af8 [file] [log] [blame] [edit]
// Copyright (C) 2019 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: Expression with an Arrow Function and Boolean literal
template: default
info: |
Statement:
BlockStatement
VariableStatement
EmptyStatement
ExpressionStatement
...
ExpressionStatement:
[lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]
Expression ;
Expression:
AssignmentExpression
Expression , AssignmentExpression
AssignmentExpression:
ConditionalExpression
[+Yield]YieldExpression
ArrowFunction
ArrowFunction:
ArrowParameters [no LineTerminator here] => ConciseBody
ConciseBody:
[lookahead ≠ {] AssignmentExpression
{ FunctionBody }
features: [arrow-function]
---*/
//- StatementListItem
() => 1, 42;
//- EvalAssertions
assert.sameValue(result, 42);