Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only set dispatcher if there is one to set.
  • Loading branch information
jnthn committed Jun 30, 2013
1 parent 9fca92f commit 2cb852a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -3503,8 +3503,10 @@ public static SixModelObject getstaticcode(SixModelObject code, ThreadContext tc
throw ExceptionHandling.dieInternal(tc, "getstaticcode can only be used with a CodeRef");
}
public static void takedispatcher(int lexIdx, ThreadContext tc) {
tc.curFrame.oLex[lexIdx] = tc.currentDispatcher;
tc.currentDispatcher = null;
if (tc.currentDispatcher != null) {
tc.curFrame.oLex[lexIdx] = tc.currentDispatcher;
tc.currentDispatcher = null;
}
}

/* process related opcodes */
Expand Down

0 comments on commit 2cb852a

Please sign in to comment.