summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/generators/prototype-property-descriptor.js
blob: 0073e026de3604d360e094cedac486a17ab66d5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
    Generator objects should define a `prototype` property.
includes: [propertyHelper.js]
es6id: 25.2.4
features: [generators]
---*/

var g = function*() {};

verifyProperty(g, "prototype", {
  writable: true,
  enumerable: false,
  configurable: false,
});

reportCompare(0, 0);