Skip to content

Commit c07416f

Browse files
committedJun 16, 2014
Support ruby < 2.1 by removing use of __dir__
1 parent 011960a commit c07416f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎lib/opal/cli_runners/nodejs.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def puts(*args)
1313
end
1414

1515
def node_modules
16-
File.expand_path("#{__dir__}/../../../node_modules")
16+
File.expand_path("../../../node_modules", __FILE__)
1717
end
1818

1919
def run(code, argv)

0 commit comments

Comments
 (0)
Please sign in to comment.