tor-browser

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

S11.13.2_A2.1_T2.3.js (638B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: Operator uses GetValue
      6 es5id: 11.13.2_A2.1_T2.3
      7 description: >
      8    If GetBase(AssigmentExpression) is null, throw ReferenceError.
      9    Check operator is "x %= y"
     10 ---*/
     11 
     12 //CHECK#1
     13 try {
     14  var x = 1;
     15  var z = (x %= y);
     16  throw new Test262Error('#1.1: var x = 1; x %= y throw ReferenceError. Actual: ' + (z));  
     17 }
     18 catch (e) {
     19  if ((e instanceof ReferenceError) !== true) {
     20    throw new Test262Error('#1.2: var x = 1; x %= y throw ReferenceError. Actual: ' + (e));  
     21  }
     22 }
     23 
     24 reportCompare(0, 0);