class RubyRunJs::OPCODES::CALL_METHOD_DOT

Public Class Methods

new(prop) click to toggle source
# File lib/ruby_run_js/opcodes.rb, line 651
def initialize(prop)
  @prop = prop
end

Public Instance Methods

eval(ctx) click to toggle source
# File lib/ruby_run_js/opcodes.rb, line 655
def eval(ctx)
  args = ctx.stack.pop()
  base = ctx.stack.pop()

  func = get_member_dot(base, @prop, ctx.builtin)

  return OPCODES.bytecode_call(ctx, func, base, args)
end