Status: Untriaged
Owner: ----
New issue 4091 by [email protected]: Wrong behavior regarding
ECMAScript-6 generators
https://code.google.com/p/v8/issues/detail?id=4091
Chromium Version 41.0.2272.76 Built on Ubuntu 14.04, running on LinuxMint
17.1 (64-bit)
Also in "Node v0.12.2" with harmony flag enabled and Firefox 33.
Hello everybody,
I think (or at least I hope) the program below should output (as for
example Traceur does, or in slightly different syntax Gorillascript and PHP
5.6 do):
"Open resource"
1
2
3
"Close resource"
Instead it outputs:
"Open resource"
1
2
3
=======
Program
=======
let generator = function* () {
console.log("Open resource");
try {
yield 1;
yield 2;
yield 3;
yield 4;
yield 5;
} finally {
console.log("Close resource");
}
}
for (let item of generator()) {
console.log(item);
if (item === 3) break;
}
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.