class RubyRunJs::OPCODES::LOAD_REGEXP
Public Class Methods
new(body, flags)
click to toggle source
# File lib/ruby_run_js/opcodes.rb, line 356 def initialize(body, flags) @body = body @flags = flags end
Public Instance Methods
eval(ctx)
click to toggle source
# File lib/ruby_run_js/opcodes.rb, line 361 def eval(ctx) ctx.stack.append(ctx.builtin.new_regexp(@body, @flags)) nil end