Debian Codegraph @

js/src/tests/test262/language/expressions/division/no-magic-asi.js

raw
1 // Copyright (C) 2019 Leo Balter. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-multiplicative-operators-runtime-semantics-evaluation
6 description: No ASI happening in identifier used as operands
7 info: |
8 MultiplicativeExpression[Yield, Await]:
9 ExponentiationExpression
10 MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
11
12 MultiplicativeOperator : one of
13 * / %
14 ---*/
15
16 var instance = 60;
17 var of = 6;
18 var g = 2;
19
20 var notRegExp = instance/of/g;
21
22 assert.sameValue(notRegExp, 5);
23
24 reportCompare(0, 0);