Debian Codegraph @

js/src/tests/test262/language/module-code/eval-export-gen-semi.js

raw
1 // |reftest| module
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.
4 /*---
5 description: >
6 An exported generator function declaration does not need to be terminated
7 with a semicolon or newline
8 esid: sec-moduleevaluation
9 flags: [module]
10 features: [generators]
11 ---*/
12
13 var count = 0;
14
15 export function* g() {} if (true) { count += 1; }
16
17 assert.sameValue(count, 1);
18
19 reportCompare(0, 0);