tor-browser

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

11.2.3-3_8.js (587B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 es5id: 11.2.3-3_8
      6 description: >
      7    Call arguments are evaluated before the check is made to see if
      8    the object is actually callable (global object)
      9 flags: [noStrict]
     10 ---*/
     11 
     12    var fooCalled = false;
     13    function foo(){ fooCalled = true; } 
     14 assert.throws(TypeError, function() {
     15        this.bar( foo() );
     16        throw new Test262Error("this.bar does not exist!");
     17 });
     18 assert.sameValue(fooCalled, true, 'fooCalled');
     19 
     20 reportCompare(0, 0);