Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix outer-hunt/freshcode interaction bug.
  • Loading branch information
jnthn committed Feb 28, 2013
1 parent f0e8ea9 commit ccb94a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -1296,7 +1296,8 @@ private static void invokeInternal(ThreadContext tc, SixModelObject invokee, Cal
if (wanted != null) {
CallFrame checkFrame = tc.curFrame;
while (checkFrame != null) {
if (checkFrame.codeRef.staticInfo == wanted) {
if (checkFrame.codeRef.staticInfo.idx == wanted.idx &&
checkFrame.codeRef.staticInfo.compUnit == wanted.compUnit) {
cf.outer = checkFrame;
break;
}
Expand Down

0 comments on commit ccb94a3

Please sign in to comment.