tor-browser

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

prop-def-id-valid.js (666B)


      1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es6id: 12.2.5.9
      5 description: >
      6    When a valid IdentifierReference appears in an object initializer, a new
      7    data property is created. The property name is the string value of the
      8    identifier, the property value is the value of the identifier, and the
      9    property is enumerable, writable, and configurable.
     10 includes: [propertyHelper.js]
     11 ---*/
     12 
     13 var attr = 23;
     14 var obj;
     15 
     16 obj = { attr };
     17 
     18 verifyProperty(obj, "attr", {
     19  value: 23,
     20  writable: true,
     21  enumerable: true,
     22  configurable: true,
     23 });
     24 
     25 reportCompare(0, 0);