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 An exported default "named" generator function declaration does not need to
7 be terminated with a semicolon or newline
8 esid: sec-moduleevaluation
10 features: [generators]
15 export default function* g() {} if (true) { count += 1; }
17 assert.sameValue(count, 1);