tor-browser

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

S12.6.1_A5.js (1448B)


      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: After "do-while" is broken, (normal, V, empty) is returned
      6 es5id: 12.6.1_A5
      7 description: Using eval
      8 ---*/
      9 
     10 var __evaluated, __in__do__before__break, __in__do__after__break;
     11 
     12 __evaluated = eval("do {__in__do__before__break=1; break; __in__do__after__break=2;} while(0)");
     13 
     14 //////////////////////////////////////////////////////////////////////////////
     15 //CHECK#1
     16 if (__in__do__before__break !== 1) {
     17 throw new Test262Error('#1: __in__do__before__break === 1. Actual:  __in__do__before__break ==='+ __in__do__before__break  );
     18 }
     19 //
     20 //////////////////////////////////////////////////////////////////////////////
     21 
     22 //////////////////////////////////////////////////////////////////////////////
     23 //CHECK#2
     24 if (typeof __in__do__after__break !== "undefined") {
     25 throw new Test262Error('#2: typeof __in__do__after__break === "undefined". Actual:  typeof __in__do__after__break ==='+ typeof __in__do__after__break  );
     26 }
     27 //
     28 //////////////////////////////////////////////////////////////////////////////
     29 
     30 //////////////////////////////////////////////////////////////////////////////
     31 //CHECK#3
     32 if (__evaluated !== 1) {
     33 throw new Test262Error('#3: __evaluated === 1. Actual:  __evaluated ==='+ __evaluated  );
     34 }
     35 //
     36 //////////////////////////////////////////////////////////////////////////////
     37 
     38 reportCompare(0, 0);