scope.go 365 B

123456789101112131415161718192021
  1. package otto
  2. // An ECMA-262 ExecutionContext.
  3. type scope struct {
  4. lexical stasher
  5. variable stasher
  6. this *object
  7. eval bool // Replace this with kind?
  8. outer *scope
  9. depth int
  10. frame frame
  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. }