Class: ExecJS::Xtrn::Wvm
- Includes:
- VM
- Defined in:
- lib/execjs/xtrn/wvm.rb
Constant Summary collapse
- Run =
@run32
Constants inherited from Wsh
ExecJS::Xtrn::Wsh::ES5, ExecJS::Xtrn::Wsh::Valid
Constants inherited from Engine
Class Method Summary collapse
-
.patch64 ⇒ Object
Force 32-bit cscript.
Methods inherited from Engine
#call, compile, #eval, eval, #exec, exec, #load, load, stats, #stats
Class Method Details
.patch64 ⇒ Object
Force 32-bit cscript
10 11 12 13 14 15 16 17 |
# File 'lib/execjs/xtrn/wvm.rb', line 10 def self.patch64 return unless Gem.win_platform? return unless File.exist? exe = File.join(ENV['windir'], 'syswow64/cscript.exe') args = Run[:args].dup args[0] = exe @run32 = Run.merge args: args end |