tor-browser

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

object-seal-p-is-own-property-of-an-arguments-object-which-implements-its-own-get-own-property.js (541B)


      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 esid: sec-setintegritylevel
      6 description: >
      7    Object.seal - 'P' is own property of an Arguments object which
      8    implements its own [[GetOwnProperty]]
      9 includes: [propertyHelper.js]
     10 ---*/
     11 
     12 var obj = (function() {
     13  return arguments;
     14 })();
     15 
     16 obj.foo = 10;
     17 
     18 assert(Object.isExtensible(obj));
     19 Object.seal(obj);
     20 
     21 verifyProperty(obj, "foo", {
     22  value: 10,
     23  configurable: false,
     24 });
     25 
     26 reportCompare(0, 0);