tor-browser

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

head-init-var-check-empty-inc-empty-completion.js (534B)


      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: |
      6    The result of evaluating "for(var ExpNoIn;Exp;Exp)" loop is returning
      7    (normal, evalValue, empty)
      8 es5id: 12.6.3_A9
      9 description: Using eval
     10 ---*/
     11 
     12 var supreme=5;
     13 
     14 var __evaluated =  eval("for(var count=0;;) {if (count===supreme)break;else count++; }");
     15 
     16 assert.sameValue(__evaluated, void 0, '#1: __evaluated === 4. Actual:  __evaluated ==='+ __evaluated  );
     17 
     18 reportCompare(0, 0);