2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
6 Binding is created and initialized to `undefined` for exported generator
8 esid: sec-moduledeclarationinstantiation
11 17. For each element d in lexDeclarations do
12 a. For each element dn of the BoundNames of d do
13 i. If IsConstantDeclaration of d is true, then
16 1. Perform ! envRec.CreateMutableBinding(dn, false).
18 includes: [fnGlobalObject.js]
22 var global = fnGlobalObject();
24 assert.sameValue(test262().next().value, 23, 'initialized value');
26 Object.getOwnPropertyDescriptor(global, 'test262'), undefined
31 assert.sameValue(test262, null, 'binding is mutable');
33 export function* test262() { return 23; }