tests/auto/qml/ecmascripttests/test262/test/language/expressions/arrow-function/low-precedence-expression-body-no-parens.js
raw| 1 | // Copyright (C) 2015 the V8 project authors. All rights reserved. |
| 2 | // This code is governed by the BSD license found in the LICENSE file. |
| 3 | /*--- |
| 4 | es6id: 14.2 |
| 5 | description: > |
| 6 | No need for parentheses even for lower-precedence expression body |
| 7 | ---*/ |
| 8 | |
| 9 | var square = x => x * x; |
| 10 | assert.sameValue(square(3), 9); |