class RubyRunJs::OPCODES::LOAD_FUNCTION
Public Class Methods
new(start, params, name, is_declaration, definitions)
click to toggle source
# File lib/ruby_run_js/opcodes.rb, line 370 def initialize(start, params, name, is_declaration, definitions) @start = start # its an ID of label pointing to the beginning of the function bytecode @params = params @name = name @is_declaration = is_declaration @definitions = (definitions + params).to_set.to_a end
Public Instance Methods
eval(ctx)
click to toggle source
# File lib/ruby_run_js/opcodes.rb, line 378 def eval(ctx) ctx.stack.push( ctx.builtin.new_function( @start, ctx, @params, @name, @is_declaration, @definitions)) nil end