regress-618657.js 394 Bytes
Newer Older
1 2 3 4 5
// Copyright 2016 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.

function* foo() { yield 42 }
neis's avatar
neis committed
6 7 8 9
function* goo() { yield 42 }
var f = foo();
var g = goo();
assertEquals(42, f.next().value);
10
assertEquals(42, g.next().value);
neis's avatar
neis committed
11
assertEquals(true, f.next().done);
12
assertEquals(true, g.next().done);