mirror of
https://github.com/robertkrimen/otto
synced 2025-10-12 20:27:30 +08:00

Update go, golangci-lint and action versions. Address new lint failures flagged by updated golangci-lint version.
21 lines
340 B
Go
21 lines
340 B
Go
package otto
|
|
|
|
// An ECMA-262 ExecutionContext.
|
|
type scope struct {
|
|
lexical stasher
|
|
variable stasher
|
|
this *object
|
|
outer *scope
|
|
frame frame
|
|
depth int
|
|
eval bool
|
|
}
|
|
|
|
func newScope(lexical stasher, variable stasher, this *object) *scope {
|
|
return &scope{
|
|
lexical: lexical,
|
|
variable: variable,
|
|
this: this,
|
|
}
|
|
}
|