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: a6f53270e2e3
Choose a base ref
...
head repository: opal/opal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 29c731e135d3
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on May 12, 2015

  1. Fix #838

    vais committed May 12, 2015
    Copy the full SHA
    4f4ee3b View commit details
  2. Merge pull request #846 from vais/fix-issue-838

    Fix #838
    elia committed May 12, 2015

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    29c731e View commit details
Showing with 3 additions and 1 deletion.
  1. +3 −1 opal/corelib/kernel.rb
4 changes: 3 additions & 1 deletion opal/corelib/kernel.rb
Original file line number Diff line number Diff line change
@@ -116,7 +116,9 @@ def initialize_clone(other)
initialize_copy(other)
end

def define_singleton_method(name, &body)
def define_singleton_method(name, body = nil, &block)
body ||= block

unless body
raise ArgumentError, "tried to create Proc object without a block"
end