summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/arrow-function/low-precedence-expression-body-no-parens.js
blob: 98a4f162bdab57e207a720c39708565cedf0d572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 14.2
description: >
    No need for parentheses even for lower-precedence expression body
---*/

var square = x => x * x;
assert.sameValue(square(3), 9);

reportCompare(0, 0);