Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions opal/corelib/kernel.rb
Original file line number Diff line number Diff line change
@@ -1047,6 +1047,7 @@ def require_relative(file)
# `path` should be the full path to be found in registered modules (`Opal.modules`)
def require_tree(path)
path = File.expand_path(path)
path = '' if path == '.'

%x{
for (var name in Opal.modules) {

0 comments on commit bd47064

Please sign in to comment.