scope.go 340 B

1234567891011121314151617181920
  1. package otto
  2. // An ECMA-262 ExecutionContext.
  3. type scope struct {
  4. lexical stasher
  5. variable stasher
  6. this *object
  7. outer *scope
  8. frame frame
  9. depth int
  10. eval bool
  11. }
  12. func newScope(lexical stasher, variable stasher, this *object) *scope {
  13. return &scope{
  14. lexical: lexical,
  15. variable: variable,
  16. this: this,
  17. }
  18. }