tor-browser

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

S15.3.5.3_A1_T6.js (704B)


      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    Assume F is a Function object. When the [[HasInstance]] method of F is
      7    called with value V, the following steps are taken: i) If V is not an
      8    object, return false
      9 es5id: 15.3.5.3_A1_T6
     10 description: V is null
     11 ---*/
     12 
     13 var FACTORY;
     14 FACTORY = Function("name","this.name=name;");
     15 
     16 //CHECK#1
     17 if ((null instanceof  FACTORY)!==false) {
     18  throw new Test262Error('#1: Assume F is a Function object. When the [[HasInstance]] method of F is called with value V, the following steps are taken: i) If V is not an object, return false');
     19 }
     20 
     21 reportCompare(0, 0);