class RubyRunJs::OPCODES::BINARY_OP
——————— BITWISE ———————-
Public Class Methods
new(operator)
click to toggle source
# File lib/ruby_run_js/opcodes.rb, line 158 def initialize(operator) @operator = operator end
Public Instance Methods
eval(ctx)
click to toggle source
# File lib/ruby_run_js/opcodes.rb, line 162 def eval(ctx) right = ctx.stack.pop() left = ctx.stack.pop() ctx.stack.append(binary_operation(@operator, left, right)) nil end