2016-03-29 17:50:54 +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.
|
|
|
|
/*---
|
|
|
|
description: >
|
|
|
|
An exported generator function declaration does not need to be terminated
|
|
|
|
with a semicolon or newline
|
|
|
|
esid: sec-moduleevaluation
|
|
|
|
flags: [module]
|
2017-10-26 23:05:18 +02:00
|
|
|
features: [generators]
|
2016-03-29 17:50:54 +02:00
|
|
|
---*/
|
|
|
|
|
|
|
|
var count = 0;
|
|
|
|
|
|
|
|
export function* g() {} if (true) { count += 1; }
|
|
|
|
|
|
|
|
assert.sameValue(count, 1);
|