Class: ExecJS::Xtrn::Wvm

Inherits:
Wsh show all
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

Engine::Error, Engine::PathX

Class Method Summary collapse

Methods inherited from Engine

#call, compile, #eval, eval, #exec, exec, #load, load, stats, #stats

Class Method Details

.patch64Object

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