Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opal/opal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2f96455a49a9
Choose a base ref
...
head repository: opal/opal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3e0b1b305ca6
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Aug 26, 2015

  1. Fix Kernel#respond_to_missing?

    meh committed Aug 26, 2015
    Copy the full SHA
    5f9af76 View commit details
  2. Fix Module#to_s

    meh committed Aug 26, 2015
    Copy the full SHA
    3e0b1b3 View commit details
Showing with 3 additions and 3 deletions.
  1. +2 −2 opal/corelib/kernel.rb
  2. +1 −1 opal/corelib/module.rb
4 changes: 2 additions & 2 deletions opal/corelib/kernel.rb
Original file line number Diff line number Diff line change
@@ -1014,7 +1014,7 @@ def rand(max = undefined)
end

def respond_to?(name, include_all = false)
return true if respond_to_missing?(name)
return true if respond_to_missing?(name, include_all)

%x{
var body = self['$' + name];
@@ -1027,7 +1027,7 @@ def respond_to?(name, include_all = false)
false
end

def respond_to_missing?(method_name)
def respond_to_missing?(method_name, include_all = false)
false
end

2 changes: 1 addition & 1 deletion opal/corelib/module.rb
Original file line number Diff line number Diff line change
@@ -532,7 +532,7 @@ def remove_const(name)
end

def to_s
`self.$$name` || "#<#{`self.$$is_mod ? 'Module' : 'Class'`}:0x#{__id__.to_s(16)}>"
name || "#<#{`self.$$is_mod ? 'Module' : 'Class'`}:0x#{__id__.to_s(16)}>"
end

def undef_method(*names)