diff --git a/lib/jison.js b/lib/jison.js index d078056ee..07a269926 100755 --- a/lib/jison.js +++ b/lib/jison.js @@ -1594,6 +1594,11 @@ _handle_error: // goto new state = table[STATE][NONTERMINAL] newState = table[stack[stack.length-2]][stack[stack.length-1]]; stack.push(newState); + + // enhance + sharedState.yy.stack = stack; + sharedState.yy.vstack = vstack; + sharedState.yy.lstack = lstack; break; case 3: