tor-browser

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

S12.6.2_A11.js (645B)


      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: "\"{}\" Block within a \"while\" Expression is evaluated to true"
      6 es5id: 12.6.2_A11
      7 description: Checking if execution of "while({}){}" passes
      8 ---*/
      9 
     10 while({}){
     11    var __in__do=1;
     12    if(__in__do)break;
     13 };
     14 
     15 //////////////////////////////////////////////////////////////////////////////
     16 //CHECK#1
     17 if (__in__do !== 1) {
     18 throw new Test262Error('#1: "{}" in while expression evaluates to true');
     19 }
     20 //
     21 //////////////////////////////////////////////////////////////////////////////
     22 
     23 reportCompare(0, 0);