tor-browser

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

AsyncFunction-length.js (573B)


      1 // Copyright 2016 Microsoft, Inc. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 author: Brian Terlson <brian.terlson@microsoft.com>
      6 esid: sec-async-function-constructor-length
      7 description: >
      8  %AsyncFunction% has a length of 1 with writable false, enumerable false, configurable true.
      9 includes: [propertyHelper.js]
     10 ---*/
     11 
     12 var AsyncFunction = async function foo() {}.constructor;
     13 verifyProperty(AsyncFunction, "length", {
     14  value: 1,
     15  writable: false,
     16  enumerable: false,
     17  configurable: true
     18 });
     19 
     20 reportCompare(0, 0);