Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/generators/length-property-descriptor.js

raw
1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 description: >
6 Generator objects should define a `length` property.
7 includes: [propertyHelper.js]
8 es6id: 25.2.4
9 features: [generators]
10 ---*/
11
12 var g = function*() {};
13
14 assert.sameValue(g.length, 0);
15 verifyNotEnumerable(g, 'length');
16 verifyNotWritable(g, 'length');
17 verifyConfigurable(g, 'length');