0c5e80b057
* add tengo.MaxStringLen and tengo.MaxBytesLen to limit the maximum byte-length of string/bytes values * add couple more tests
11 lines
340 B
Go
11 lines
340 B
Go
package tengo
|
|
|
|
var (
|
|
// MaxStringLen is the maximum byte-length for string value.
|
|
// Note this limit applies to all compiler/VM instances in the process.
|
|
MaxStringLen = 2147483647
|
|
|
|
// MaxBytesLen is the maximum length for bytes value.
|
|
// Note this limit applies to all compiler/VM instances in the process.
|
|
MaxBytesLen = 2147483647
|
|
)
|