Skip to content

Commit d9a8e0e

Browse files
committed
fix: missing . in temp file which leads creating extensionless file
1 parent 2a4672f commit d9a8e0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/execjs/external_runtime.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def create_tempfile(basename)
5959
end
6060

6161
def write_to_tempfile(contents)
62-
tmpfile = create_tempfile(['execjs', 'js'])
62+
tmpfile = create_tempfile(['execjs', '.js'])
6363
tmpfile.write(contents)
6464
tmpfile.close
6565
tmpfile

0 commit comments

Comments
 (0)