Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / AsyncFunction / instance-has-name.js
blob13a6a8eb533fe53214b8cd60be44f63eadd64aa4
1 // Copyright 2016 Microsoft, Inc. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
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 ---*/
11 async function foo() {};
13 assert.sameValue(foo.name, "foo");
14 verifyNotWritable(foo, "name");
15 verifyNotEnumerable(foo, "name");
16 verifyConfigurable(foo, "name");
18 reportCompare(0, 0);