tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

no-magic-asi-from-block-eval.js (577B)


      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: division after block statement (no ASI)
      7 info: |
      8  MultiplicativeExpression[Yield, Await]:
      9    ExponentiationExpression
     10    MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
     11 
     12  MultiplicativeOperator : one of
     13    * / %
     14 ---*/
     15 
     16 var of = 4;
     17 var g = 2;
     18 
     19 var notRegExp = eval('{[42]}.8/of/g');
     20 
     21 assert.sameValue(notRegExp, .1);
     22 
     23 reportCompare(0, 0);