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

Enable more linters, address the issues and do a major naming refactor to use golang lower camelCase identifiers for types, functions, methods and variable names. Also: * Clean up inline generation so it doesn't rely on temporary variables. * Remove unused functions generated by inline.pl.
22 lines
365 B
Go
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,
|
|
}
|
|
}
|