Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct some errors.
  • Loading branch information
jnthn committed Feb 28, 2013
1 parent c096b92 commit f631cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -2701,13 +2701,13 @@ public static SixModelObject freshcoderef(SixModelObject code, ThreadContext tc)
}
public static SixModelObject markcodestatic(SixModelObject code, ThreadContext tc) {
if (!(code instanceof CodeRef))
throw new RuntimeException("freshcoderef must be used on a CodeRef");
throw new RuntimeException("markcodestatic must be used on a CodeRef");
((CodeRef)code).isStaticCodeRef = true;
return code;
}
public static SixModelObject markcodestub(SixModelObject code, ThreadContext tc) {
if (!(code instanceof CodeRef))
throw new RuntimeException("freshcoderef must be used on a CodeRef");
throw new RuntimeException("markcodestub must be used on a CodeRef");
((CodeRef)code).isCompilerStub = true;
return code;
}
Expand Down

0 comments on commit f631cb7

Please sign in to comment.