On Windows7, I was getting the following complaints:
ExecJS::RuntimeError (Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
Input Error: There is no file extension in "C:\Users\swaits\AppData\Local\Temp\execjs20110427-6772-1dnexso".
This is easily resolved by adding a ".js" extension to the tempfile. Luckily, Tempfile.open() already supports this by simply passing it an array, instead of a single String.
force .js extension on tempfile to make win32 ExecJS happy
Merged pull request #12 from swaits/master.
add .js extension to tempfile (improves Windows compatibility)