tor-browser

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

15.2.3.5-4-38.js (593B)


      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: 15.2.3.5-4-38
      6 description: >
      7    Object.create - 'Properties' is an Arguments object which
      8    implements its own [[Get]] method to access own enumerable
      9    property (15.2.3.7 step 5.a)
     10 ---*/
     11 
     12 var argObj = (function() {
     13  return arguments;
     14 })();
     15 
     16 argObj.prop = {
     17  value: 12,
     18  enumerable: true
     19 };
     20 
     21 var newObj = Object.create({}, argObj);
     22 
     23 assert(newObj.hasOwnProperty("prop"), 'newObj.hasOwnProperty("prop") !== true');
     24 
     25 reportCompare(0, 0);