tor-browser

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

S11.13.1_A4_T1.js (452B)


      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: "AssignmentExpression : LeftHandSideExpression = AssignmentExpression"
      6 es5id: 11.13.1_A4_T1
      7 description: Syntax check
      8 ---*/
      9 
     10 //CHECK#1
     11 var x;
     12 x = x = 1;
     13 if (x !== 1) {
     14  throw new Test262Error('#1: The expression x = x = 1 is the same x = (x = 1), not (x = x) = 1. Actual: ' + (x));
     15 }
     16 
     17 reportCompare(0, 0);