mirror of https://github.com/ethereum/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
525 B
36 lines
525 B
10 years ago
|
package otto
|
||
|
|
||
|
// _scope:
|
||
|
// entryFile
|
||
|
// entryIdx
|
||
|
// top?
|
||
|
// outer => nil
|
||
|
|
||
|
// _stash:
|
||
|
// lexical
|
||
|
// variable
|
||
|
//
|
||
|
// _thisStash (ObjectEnvironment)
|
||
|
// _fnStash
|
||
|
// _dclStash
|
||
|
|
||
|
// An ECMA-262 ExecutionContext
|
||
|
type _scope struct {
|
||
|
lexical _stash
|
||
|
variable _stash
|
||
|
this *_object
|
||
|
eval bool // Replace this with kind?
|
||
|
outer *_scope
|
||
8 years ago
|
depth int
|
||
10 years ago
|
|
||
|
frame _frame
|
||
|
}
|
||
|
|
||
|
func newScope(lexical _stash, variable _stash, this *_object) *_scope {
|
||
|
return &_scope{
|
||
|
lexical: lexical,
|
||
|
variable: variable,
|
||
|
this: this,
|
||
|
}
|
||
|
}
|