mirror of https://github.com/tc39/test262.git
22 lines
555 B
JavaScript
22 lines
555 B
JavaScript
// 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: division after block statement (no ASI)
|
|
info: |
|
|
MultiplicativeExpression[Yield, Await]:
|
|
ExponentiationExpression
|
|
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
|
|
|
|
MultiplicativeOperator : one of
|
|
* / %
|
|
---*/
|
|
|
|
var of = 4;
|
|
var g = 2;
|
|
|
|
var notRegExp = eval('{[42]}.8/of/g');
|
|
|
|
assert.sameValue(notRegExp, .1);
|