class RubyRunJs::OPCODES::STORE

————— STORING ————–

Public Class Methods

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

Public Instance Methods

eval(ctx) click to toggle source
# File lib/ruby_run_js/opcodes.rb, line 475
def eval(ctx)
  value = ctx.stack[-1]  # don't pop
  ctx.set_binding(@identifier, value)
  nil
end