(fn LGFunction)
| 1423 | } |
| 1424 | |
| 1425 | func (ls *LState) NewFunction(fn LGFunction) *LFunction { |
| 1426 | return newLFunctionG(fn, ls.currentEnv(), 0) |
| 1427 | } |
| 1428 | |
| 1429 | func (ls *LState) NewClosure(fn LGFunction, upvalues ...LValue) *LFunction { |
| 1430 | cl := newLFunctionG(fn, ls.currentEnv(), len(upvalues)) |
no test coverage detected