Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions corelib/runtime.js
Original file line number Diff line number Diff line change
@@ -219,6 +219,9 @@
module._name = (base === RubyObject ? id : base._name + '::' + id);

create_scope(base._scope, module, id);

// Name new module directly onto current scope (Opal.Foo.Baz = module)
base[id] = base._scope[id] = module;
}

return module;

0 comments on commit ce381f9

Please sign in to comment.