summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/generators/prototype-uniqueness.js
blob: adb22b820c67fc36ef7c59af5d31e95de97ab9a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: >
    GeneratorFunction instances are created with a unique prototype object.
es6id: 25.2.1
features: [generators]
---*/

function* g1() {}
function* g2() {}

assert(g1.prototype !== g2.prototype);

reportCompare(0, 0);