Class: Minjs::ECMA262::ExeContext
- Inherits:
-
Object
- Object
- Minjs::ECMA262::ExeContext
- Defined in:
- lib/minjs/ecma262/env.rb
Overview
Class of Execution Contexts
Instance Attribute Summary collapse
-
#lex_env ⇒ Object
Returns the value of attribute lex_env.
-
#this_binding ⇒ Object
Returns the value of attribute this_binding.
-
#var_env ⇒ Object
Returns the value of attribute var_env.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ExeContext
constructor
A new instance of ExeContext.
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( = {}) @var_env = LexEnv.new() @lex_env = LexEnv.new() @this_binding = nil end |
Instance Attribute Details
#lex_env ⇒ Object
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_binding ⇒ Object
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_env ⇒ Object
Returns the value of attribute var_env.
109 110 111 |
# File 'lib/minjs/ecma262/env.rb', line 109 def var_env @var_env end |