Skip to content

Commit

Permalink
Stop generating empty fragments when require() used as expression
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 31, 2013
1 parent b68dc4e commit 4986f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opal/nodes/call.rb
Expand Up @@ -102,7 +102,7 @@ def handle_special
add_special :require do
str = DependencyResolver.new(compiler, arglist[1]).resolve
compiler.requires << str unless str.nil?
fragment ''
stmt? ? fragment('') : fragment('true')
end

add_special :autoload do
Expand Down

0 comments on commit 4986f11

Please sign in to comment.