--TEST--
Generator::throw() where the exception is not caught in the generator
--FILE--
<?php

function gen() {
    yield 'thisThrows';
    yield 'notReached';
}

$gen = gen();
var_dump($gen->throw(new RuntimeException('test')));

?>
--EXPECTF--
Fatal error: Uncaught exception 'RuntimeException' with message 'test' in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d
