summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/division/no-magic-asi.js
blob: e6f9c876dd49210b01c1d5c61ed959cd2ea6ea6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2019 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-multiplicative-operators-runtime-semantics-evaluation
description: No ASI happening in identifier used as operands
info: |
  MultiplicativeExpression[Yield, Await]:
    ExponentiationExpression
    MultiplicativeExpression MultiplicativeOperator ExponentiationExpression

  MultiplicativeOperator : one of
    * / %
---*/

var instance = 60;
var of = 6;
var g = 2;

var notRegExp = instance/of/g;

assert.sameValue(notRegExp, 5);

reportCompare(0, 0);