tor-browser

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

S8.12.6_A1.js (691B)


      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    When the [[HasProperty]] method of O is called with property name P and
      7    if O has a property with name P, return true
      8 es5id: 8.12.6_A1
      9 description: Try find existent property of any Object
     10 ---*/
     11 
     12 var __obj={fooProp:"fooooooo"};
     13 
     14 //////////////////////////////////////////////////////////////////////////////
     15 //CHECK#1
     16 if (!("fooProp" in __obj)) {
     17  throw new Test262Error('#1: var __obj={fooProp:"fooooooo"}; "fooProp" in __obj');
     18 }
     19 //
     20 //////////////////////////////////////////////////////////////////////////////
     21 
     22 reportCompare(0, 0);