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

Commits on Sep 11, 2014

  1. Copy the full SHA
    d36597f View commit details
  2. Align assignments in runtime.js

    [skip ci]
    elia committed Sep 11, 2014
    Copy the full SHA
    301210e View commit details
Showing with 25 additions and 24 deletions.
  1. +2 −1 Guardfile
  2. +23 −23 opal/corelib/runtime.js
3 changes: 2 additions & 1 deletion Guardfile
Original file line number Diff line number Diff line change
@@ -38,9 +38,10 @@ class ::Guard::Opal < Plugin
columns = terminal_columns
puts color("=== running: #{titles.join(' ')} ".ljust(columns,'='), :cyan)
s = Time.now
yield
result = yield
t = (Time.now - s).to_f
puts color("=== time: #{t} seconds ".ljust(columns, '='), :cyan)
result
end

def run_on_changes(changes)
46 changes: 23 additions & 23 deletions opal/corelib/runtime.js
Original file line number Diff line number Diff line change
@@ -178,15 +178,15 @@

var klass = new OpalClass();

klass.$$id = unique_id++;
klass.$$alloc = constructor;
klass.$$is_class = true;
klass.$$id = unique_id++;
klass.$$alloc = constructor;
klass.$$is_class = true;
klass.constructor = OpalClass;
klass.$$super = superklass;
klass.$$methods = [];
klass.$$inc = [];
klass.$$super = superklass;
klass.$$methods = [];
klass.$$inc = [];
klass.$$parent = superklass;
klass.$$proto = constructor.prototype;
klass.$$proto = constructor.prototype;

constructor.prototype.$$class = klass;

@@ -234,16 +234,16 @@

var module = new OpalModule();

module.$$id = unique_id++;
module.$$is_class = true;
module.$$id = unique_id++;
module.$$is_class = true;
module.constructor = OpalModule;
module.$$super = RubyModule;
module.$$methods = [];
module.$$inc = [];
module.$$super = RubyModule;
module.$$methods = [];
module.$$inc = [];
module.$$parent = RubyModule;
module.$$proto = {};
module.$$mod = true;
module.$$dep = [];
module.$$proto = {};
module.$$mod = true;
module.$$dep = [];

return module;
}
@@ -273,16 +273,16 @@

var klass = new OpalClass();

klass.$$id = unique_id++;
klass.$$alloc = constructor;
klass.$$is_class = true;
klass.$$name = id;
klass.$$super = superklass;
klass.$$id = unique_id++;
klass.$$alloc = constructor;
klass.$$is_class = true;
klass.$$name = id;
klass.$$super = superklass;
klass.constructor = OpalClass;
klass.$$methods = [];
klass.$$inc = [];
klass.$$methods = [];
klass.$$inc = [];
klass.$$parent = superklass;
klass.$$proto = constructor.prototype;
klass.$$proto = constructor.prototype;

constructor.prototype.$$class = klass;