e93f6f6325
- add object.NumObjects() - add object allocation limit in VM - delete objects.Break, objects.Continue, objects.ReturnValue - add Script.SetMaxAllocs() - update sandbox documentation - add some tests - remove duplicate values in compiled constants (fixes #96) - option to limit the maximum number of objects in compiled bytecode constants
11 lines
273 B
Go
11 lines
273 B
Go
package runtime
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// ErrStackOverflow is a stack overflow error.
|
|
var ErrStackOverflow = errors.New("stack overflow")
|
|
|
|
// ErrObjectAllocLimit is an objects allocation limit error.
|
|
var ErrObjectAllocLimit = errors.New("object allocation limit exceeded")
|