tor-browser

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

10.4.3-1-5-s.js (509B)


      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: 10.4.3-1-5-s
      6 description: this is not coerced to an object (function)
      7 ---*/
      8 
      9 function foo()
     10 {
     11  'use strict';
     12  return typeof(this);
     13 }
     14 
     15 function bar()
     16 {
     17  return typeof(this);
     18 }
     19 
     20 function foobar()
     21 {
     22 }
     23 
     24 assert.sameValue(foo.call(foobar), 'function', 'foo.call(foobar)');
     25 assert.sameValue(bar.call(foobar), 'function', 'bar.call(foobar)');
     26 
     27 reportCompare(0, 0);