Class: Minjs::ECMA262::ExeContext

Inherits:
Object
  • Object
show all
Defined in:
lib/minjs/ecma262/env.rb

Overview

Class of Execution Contexts

See Also:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ExeContext

Returns a new instance of ExeContext.



111
112
113
114
115
# File 'lib/minjs/ecma262/env.rb', line 111

def initialize(options = {})
  @var_env = LexEnv.new(options)
  @lex_env = LexEnv.new(options)
  @this_binding = nil
end

Instance Attribute Details

#lex_envObject

Returns the value of attribute lex_env.



108
109
110
# File 'lib/minjs/ecma262/env.rb', line 108

def lex_env
  @lex_env
end

#this_bindingObject

Returns the value of attribute this_binding.



110
111
112
# File 'lib/minjs/ecma262/env.rb', line 110

def this_binding
  @this_binding
end

#var_envObject

Returns the value of attribute var_env.



109
110
111
# File 'lib/minjs/ecma262/env.rb', line 109

def var_env
  @var_env
end