Skip to content

Commit

Permalink
[js] Fix a bug with NQPMu $!cstack breaking the bstack.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Apr 30, 2016
1 parent 1daaef5 commit a28876c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/js/nqp-runtime/nfa.js
Expand Up @@ -278,7 +278,7 @@ op.nfarunalt = function(nfa, target, pos, bstack, cstack, marks) {
var fates = runNFA(nfa, target, pos).array;

/* Push the results onto the bstack. */
var caps = cstack ? cstack.length : 0;
var caps = cstack instanceof Array ? cstack.length : 0;

for (var i = 0; i < fates.length; i++) {
bstack.push(marks[fates[i]], pos, 0, caps);
Expand Down

0 comments on commit a28876c

Please sign in to comment.