blob: 2882cff808ccae177c892572fdb8c67ca525c364 [file] [log] [blame]
Ben Murdoch61f157c2016-09-16 13:49:30 +01001// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Flags: --ignition --ignition-generators --ignition-filter=-foo
6
7function* foo() { yield 42 }
8function* goo() { yield 42 }
9var f = foo();
10var g = goo();
11assertEquals(42, f.next().value);
12assertEquals(42, g.next().value);
13assertEquals(true, f.next().done);
14assertEquals(true, g.next().done);