2016-07-01 20:24:27 +02:00
|
|
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
|
|
esid: sec-properties-of-the-generatorfunction-constructor
|
|
|
|
description: Object extensibility
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2016-07-01 20:24:27 +02:00
|
|
|
The value of the [[Extensible]] internal slot of the GeneratorFunction
|
|
|
|
constructor is true.
|
2017-10-04 22:12:34 +02:00
|
|
|
features: [generators]
|
2016-07-01 20:24:27 +02:00
|
|
|
---*/
|
|
|
|
|
2018-02-15 21:25:56 +01:00
|
|
|
var GeneratorFunction = Object.getPrototypeOf(function*() {}).constructor;
|
2016-07-01 20:24:27 +02:00
|
|
|
|
|
|
|
assert(Object.isExtensible(GeneratorFunction));
|