mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
parent
24ea151662
commit
b8eb17e022
2 changed files with 15 additions and 3 deletions
9
js/src/jit-test/tests/for-of/bug-1341339.js
Normal file
9
js/src/jit-test/tests/for-of/bug-1341339.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
let m = parseModule(`
|
||||
function* values() {}
|
||||
var iterator = values();
|
||||
for (var i=0; i < 10000; ++i) {
|
||||
for (var x of iterator) {}
|
||||
}
|
||||
`);
|
||||
m.declarationInstantiation();
|
||||
m.evaluation();
|
||||
|
|
@ -963,9 +963,12 @@ IonBuilder::processIterators()
|
|||
Vector<MDefinition*, 8, SystemAllocPolicy> worklist;
|
||||
|
||||
for (size_t i = 0; i < iterators_.length(); i++) {
|
||||
if (!worklist.append(iterators_[i]))
|
||||
return false;
|
||||
iterators_[i]->setInWorklist();
|
||||
MDefinition* iter = iterators_[i];
|
||||
if (!iter->isInWorklist()) {
|
||||
if (!worklist.append(iter))
|
||||
return false;
|
||||
iter->setInWorklist();
|
||||
}
|
||||
}
|
||||
|
||||
while (!worklist.empty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue