rum-goggles/vendor/github.com/robertkrimen/otto/scope.go
2024-02-23 11:39:16 -05:00

22 lines
365 B
Go

package otto
// An ECMA-262 ExecutionContext.
type scope struct {
lexical stasher
variable stasher
this *object
eval bool // Replace this with kind?
outer *scope
depth int
frame frame
}
func newScope(lexical stasher, variable stasher, this *object) *scope {
return &scope{
lexical: lexical,
variable: variable,
this: this,
}
}