You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Close closes the script and cleanly disposes of its resources.
133
143
func (s*Script) Close() error {
134
144
s.lock.Lock()
@@ -140,15 +150,13 @@ func (s *Script) Close() error {
140
150
141
151
// newVM creates a new LUA state
142
152
funcnewVM() *lua.LState {
143
-
state:=lua.NewState(lua.Options{
153
+
returnlua.NewState(lua.Options{
144
154
RegistrySize: 1024*20, // this is the initial size of the registry
145
155
RegistryMaxSize: 1024*80, // this is the maximum size that the registry can grow to. If set to `0` (the default) then the registry will not auto grow
146
156
RegistryGrowStep: 32, // this is how much to step up the registry by each time it runs out of space. The default is `32`.
147
157
CallStackSize: 120, // this is the maximum callstack size of this LState
148
158
MinimizeStackMemory: true, // Defaults to `false` if not specified. If set, the callstack will auto grow and shrink as needed up to a max of `CallStackSize`. If not set, the callstack will be fixed at `CallStackSize`.
0 commit comments