tor-browser

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

prop-desc.js (1157B)


      1 // Copyright (C) 2016 The V8 Project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-reflect-object
      6 description: >
      7  Property descriptor of Reflect
      8 info: |
      9  The Reflect Object
     10 
     11  ...
     12  The Reflect object does not have a [[Construct]] internal method;
     13  it is not possible to use the Reflect object as a constructor with the new operator.
     14 
     15  The Reflect object does not have a [[Call]] internal method;
     16  it is not possible to invoke the Reflect object as a function.
     17 
     18  17 ECMAScript Standard Built-in Objects:
     19 
     20  Every other data property described in clauses 18 through 26 and in Annex B.2
     21  has the attributes { [[Writable]]: true, [[Enumerable]]: false,
     22  [[Configurable]]: true } unless otherwise specified.
     23 includes: [propertyHelper.js]
     24 features: [Reflect]
     25 ---*/
     26 
     27 assert.sameValue(typeof Reflect, "object");
     28 
     29 assert.throws(TypeError, function() {
     30  Reflect();
     31 }, "no [[Call]]");
     32 
     33 assert.throws(TypeError, function() {
     34  new Reflect();
     35 }, "no [[Construct]]");
     36 
     37 verifyProperty(this, "Reflect", {
     38  enumerable: false,
     39  writable: true,
     40  configurable: true
     41 });
     42 
     43 reportCompare(0, 0);