Debian Codegraph @

js/src/tests/test262/built-ins/AsyncFunction/AsyncFunction-length.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-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);