blob: ce8a47332fbe259bc0d0e1bcb0acf20fd843a717 [file] [log] [blame]
// 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: >
Whenever a GeneratorFunction instance is created another ordinary object is
also created and is the initial value of the generator function’s prototype
property.
features: [generators]
---*/
function* g() {}
assert.sameValue(typeof g.prototype, 'object');