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

Commits on May 24, 2015

  1. Fix issues #875 and #876

    vais committed May 24, 2015
    Copy the full SHA
    0a9c6b1 View commit details

Commits on May 30, 2015

  1. Merge pull request #892 from vais/fix-issues-875-and-876

    Fix issues #875 and #876 (compiler generates accidental globals compiling `class << ...`)
    vais committed May 30, 2015
    Copy the full SHA
    f860905 View commit details
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/opal/nodes/singleton_class.rb
3 changes: 2 additions & 1 deletion lib/opal/nodes/singleton_class.rb
Original file line number Diff line number Diff line change
@@ -14,8 +14,9 @@ def compile
add_temp '$scope = self.$$scope'
add_temp 'def = self.$$proto'

body_stmt = stmt(compiler.returns(body))
line scope.to_vars
line stmt(compiler.returns(body))
line body_stmt
end

line "})(", recv(object), ".$singleton_class())"