class RubyRunJs::OPCODES::OP_CODE

Public Instance Methods

eval(ctx) click to toggle source

@return nil means the interpreter should just execute the next code @return [Int] means the interpreter should jump to label @return [Scope, function_label] means the interpreter should call the function with the context @return :Return means the js function should be returned

# File lib/ruby_run_js/opcodes.rb, line 22
def eval(ctx)
end
to_s() click to toggle source
# File lib/ruby_run_js/opcodes.rb, line 13
def to_s
  vars = instance_variables.map { |v| instance_variable_get(v) }
  self.class.name.split('::')[2] + '(' + vars.join(',') + ')'
end