functions now capture variables :D
This commit is contained in:
parent
43e450c207
commit
d315a53fbd
5 changed files with 49 additions and 11 deletions
|
|
@ -603,6 +603,7 @@ type FunctionValue struct {
|
|||
Yield TypeSignature
|
||||
Chunk *Chunk
|
||||
Parent Value
|
||||
Scope *Scope
|
||||
}
|
||||
|
||||
func (v *FunctionValue) Type() ValueType {
|
||||
|
|
@ -633,6 +634,7 @@ func (v *FunctionValue) Clone() Value {
|
|||
v.Yield,
|
||||
v.Chunk,
|
||||
v.Parent,
|
||||
v.Scope,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue