Skip to content

Commit

Permalink
[Truffle] Missing transfer.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Oct 2, 2014
1 parent 3e4161a commit 6be98c4
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -9,6 +9,7 @@
*/
package org.jruby.truffle.nodes;

import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.source.*;
import com.oracle.truffle.api.frame.*;
import com.oracle.truffle.api.nodes.UnexpectedResultException;
Expand Down Expand Up @@ -41,6 +42,7 @@ public Object execute(VirtualFrame frame) {
final Object receiverObject = receiver.execute(frame);

if (isLiteral && !(receiverObject instanceof RubyModule)) {
CompilerDirectives.transferToInterpreter();
throw new RaiseException(getContext().getCoreLibrary().typeErrorIsNotA(receiverObject.toString(), "class/module", this));
}

Expand Down

0 comments on commit 6be98c4

Please sign in to comment.