Skip to content

Commit

Permalink
Default old to new in Module#alias_native
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Sep 22, 2013
1 parent 9c11d15 commit c0546ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion corelib/module.rb
Expand Up @@ -43,7 +43,7 @@ def alias_method(newname, oldname)
self
end

def alias_native(mid, jsid)
def alias_native(mid, jsid = mid)
`#{self}._proto['$' + mid] = #{self}._proto[jsid]`
end

Expand Down

0 comments on commit c0546ba

Please sign in to comment.