Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

force .js extension on tempfile to make win32 ExecJS happy

  • Loading branch information...
commit 6d42f5412a90b7a2f5b581098f8791adbc6ffaca 1 parent 98827a0
swaits authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/execjs/external_runtime.rb
2  lib/execjs/external_runtime.rb
@@ -26,7 +26,7 @@ def call(identifier, *args)
26 26
27 27 protected
28 28 def compile_to_tempfile(source)
29   - tempfile = Tempfile.open("execjs")
  29 + tempfile = Tempfile.open(["execjs",".js"])
30 30 tempfile.write compile(source)
31 31 tempfile.close
32 32 yield tempfile

0 comments on commit 6d42f54

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