Skip to content

Commit

Permalink
elia/prepend: [snapshot]
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Sep 11, 2016
1 parent 244ce6d commit 1989807
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opal/corelib/module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,9 @@ def include(*mods)
var mod = mods[i];
if (!mod.$$is_module) {
#{raise TypeError, "wrong argument type #{`mod`.class} (expected Module)"};
console.log(mod);
console.log('======', mod.$new().$foo());
#{raise TypeError, "wrong argument type #{`mod`.class} #{`mod.$$name`}(expected Module)"};
}
#{`mod`.append_features self};
Expand Down

0 comments on commit 1989807

Please sign in to comment.