Permalink
Browse files

Absent #is_a? etc., adding explicit nil check in Fixnum#== as a tempo…

…rary hack to get the parser closer to self-hosted
  • Loading branch information...
vidarh committed Sep 11, 2014
1 parent 814b520 commit 2f8ecb7cbfe6f200c6bfba0c7048b39fbd3a3b89
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/core/fixnum.rb
View
@@ -42,6 +42,9 @@ def <= other
end
def == other
if other.nil?
return false
end
%s(if (eq @value (callm other __get_raw)) true false)
end

0 comments on commit 2f8ecb7

Please sign in to comment.