tor-browser

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

instance-has-name.js (483B)


      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-instances-name
      7 description: Async function declarations have a name property
      8 includes: [propertyHelper.js]
      9 ---*/
     10 
     11 async function foo() {};
     12 
     13 verifyProperty(foo, "name", {
     14  value: "foo",
     15  writable: false,
     16  enumerable: false,
     17  configurable: true
     18 });
     19 
     20 reportCompare(0, 0);