Skip to content
Permalink
Browse files
[Truffle] Missing transfer.
  • Loading branch information
chrisseaton committed Oct 2, 2014
1 parent 3e4161a commit 6be98c436d089448bb4a17268d99250ec91c39c8
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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;
@@ -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));
}

0 comments on commit 6be98c4

Please sign in to comment.