Skip to content

Commit

Permalink
[Truffle] Primitives aren't foreign.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Oct 15, 2015
1 parent 1423e09 commit dc1c722
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -220,7 +220,7 @@ public static boolean isThreadLocal(Object value) {
}

public static boolean isForeignObject(Object object) {
return !isRubyBasicObject(object);
return object instanceof TruffleObject && !isRubyBasicObject(object);
}

// Sentinels

0 comments on commit dc1c722

Please sign in to comment.