Bug 931414 - Add test case. r=jandem

This commit is contained in:
Andy Wingo 2013-11-11 12:22:24 +01:00
parent cdf023d756
commit 458ca58832

View File

@ -0,0 +1,11 @@
// |jit-test| error: is undefined
load(libdir + "iteration.js");
function iterable() {
var iterable = {};
iterable[std_iterator] = () => ({next: () => void 0});
return iterable;
}
(function*(){yield*iterable()}()).next();