Skip to content

Commit

Permalink
Fix correct-outer test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 28, 2013
1 parent 4cfb37b commit ef71881
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/frame.c
Expand Up @@ -146,8 +146,9 @@ void MVM_frame_invoke(MVMThreadContext *tc, MVMStaticFrame *static_frame,
/* Outer. */
if (outer) {
/* We were provided with an outer frame; just ensure that it is
* based on the correct static frame. */
if (outer->static_info == static_frame_body->outer)
* based on the correct static frame (compare on bytecode address
* to come with nqp::freshcoderef). */
if (outer->static_info->body.bytecode == static_frame_body->outer->body.bytecode)
frame->outer = outer;
else
MVM_exception_throw_adhoc(tc,
Expand Down

0 comments on commit ef71881

Please sign in to comment.