Debian Codegraph @

js/src/tests/test262/built-ins/AsyncFunction/instance-has-name.js

raw
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 <[email protected]>
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);