blob: 6da929bd7e59cedfe09c1d75a2e314062bbce2be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-generatorfunction.length
description: >
This is a data property with a value of 1. This property has the attributes {
[[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
features: [generators]
---*/
var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
verifyProperty(GeneratorFunction, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});
reportCompare(0, 0);
|