summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/generators/prototype-own-properties.js
blob: d3587d0be70dfbcb1a8b362a1c7df519a0943084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 25.2.4.2
description: >
    The `prototype` property of GeneratorFunction instances are created as
    plain objects with no "own" properties.
features: [generators]
---*/

function* g() {}
var ownProperties = Object.getOwnPropertyNames(g.prototype);
assert.sameValue(ownProperties.length, 0);

reportCompare(0, 0);