Skip to content

Commit

Permalink
[Truffle] Update unless test since undefined is truthy
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Fish committed Sep 15, 2016
1 parent ffbfc89 commit 3a85306
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions truffle/src/main/ruby/core/type.rb
Expand Up @@ -260,8 +260,7 @@ def self.check_funcall_respond_to(obj, meth, priv)
end

def self.check_funcall_missing(recv, meth, args, respond, default)
ret = basic_obj_respond_to_missing(recv, meth, false) #PRIV false
return default unless undefined.equal?(ret) || ret
return default unless basic_obj_respond_to_missing(recv, meth, false) #PRIV false
if object_respond_to_no_built_in?(recv, :method_missing, true)
begin
return recv.__send__(:method_missing, meth) # , args
Expand Down

0 comments on commit 3a85306

Please sign in to comment.