mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
Bug 931414 - Add test case. r=jandem
This commit is contained in:
parent
cdf023d756
commit
458ca58832
11
js/src/jit-test/tests/generators/bug931414.js
Normal file
11
js/src/jit-test/tests/generators/bug931414.js
Normal 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();
|
Loading…
Reference in New Issue
Block a user