Status: New
Owner: ----
New issue 3527 by [email protected]: Generators seem to be broken with
--always-opt --turbo-filter=* flags
http://code.google.com/p/v8/issues/detail?id=3527
With the following flags (specified when running mjsunit tests), we get
incorrect results
out/x64.release/d8 --random-seed=454874028 --turbo-filter=* --always-opt
--harmony-arrays --harmony-generators
V8 version 3.29.13 (candidate) [console: dumb]
d8> (function() { function* generator() { yield '1'; yield '2'; yield '3';
} var results = []; var x; for (x of generator()) { results.push(x); }
return results; })()
[]
But without the combination of these two flags, we get the expected result:
out/x64.release/d8 --random-seed=454874028 --harmony-arrays
--harmony-generators
V8 version 3.29.13 (candidate) [console: dumb]
d8> (function() { function* generator() { yield '1'; yield '2'; yield '3';
} var results = []; var x; for (x of generator()) { results.push(x); }
return results; })()
['1', '2', '3']
Unfortunately this broken combination of flags is breaking a test in one of
my CLs, and that is unfortunate :( I'm sure someone is looking at this
already, but I didn't see a bug filed.
(just so pasted code is a bit easier to read, it's in full down here:)
(function() {
function* generator() {
yield '1';
yield '2';
yield '3';
}
var results = [];
var x;
for (x of generator()) {
results.push(x);
}
return results;
})()
--
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.