Skip to content

Commit

Permalink
bugfix: throw inside for ( .. of .. ) gives a ReferenceError (#33)
Browse files Browse the repository at this point in the history
Should fix #32.
  • Loading branch information
keepkeyjon authored and rpetrich committed Jun 11, 2019
1 parent b5db43d commit 3b43974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers.js
Expand Up @@ -133,7 +133,7 @@ export function _forTo(array, body, check) {
pact = result;
}
} catch (e) {
_settle(pact || (pact = new Pact()), 2, e);
_settle(pact || (pact = new _Pact()), 2, e);
}
}
_cycle();
Expand Down Expand Up @@ -188,7 +188,7 @@ export function _forOf(target, body, check) {
pact = result;
}
} catch (e) {
_settle(pact || (pact = new Pact()), 2, e);
_settle(pact || (pact = new _Pact()), 2, e);
}
}
_cycle();
Expand Down

0 comments on commit 3b43974

Please sign in to comment.