15 lines
329 B
JavaScript
15 lines
329 B
JavaScript
|
// Copyright 2017 the V8 project authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style license that can be
|
||
|
// found in the LICENSE file.
|
||
|
|
||
|
var let = 0;
|
||
|
function* generator() {
|
||
|
let
|
||
|
yield 0;
|
||
|
}
|
||
|
|
||
|
let it = generator();
|
||
|
let {value, done} = it.next();
|
||
|
assertEquals(0, value);
|
||
|
assertEquals(false, done);
|