Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

force .js extension on tempfile to make win32 ExecJS happy

  • Loading branch information...
commit 6d42f5412a90b7a2f5b581098f8791adbc6ffaca 1 parent 98827a0
@swaits authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/execjs/external_runtime.rb
View
2  lib/execjs/external_runtime.rb
@@ -26,7 +26,7 @@ def call(identifier, *args)
protected
def compile_to_tempfile(source)
- tempfile = Tempfile.open("execjs")
+ tempfile = Tempfile.open(["execjs",".js"])
tempfile.write compile(source)
tempfile.close
yield tempfile

0 comments on commit 6d42f54

Please sign in to comment.
Something went wrong with that request. Please try again.