Better convert LexError to ParseError.
This commit is contained in:
@@ -2480,7 +2480,7 @@ engine.set_max_string_size(500); // allow strings only up to 500 byte
|
||||
engine.set_max_string_size(0); // allow unlimited string length
|
||||
```
|
||||
|
||||
A script attempting to create a string literal longer than the maximum will terminate with a parse error.
|
||||
A script attempting to create a string literal longer than the maximum length will terminate with a parse error.
|
||||
Any script operation that produces a string longer than the maximum also terminates the script with an error result.
|
||||
This check can be disabled via the [`unchecked`] feature for higher performance
|
||||
(but higher risks as well).
|
||||
|
Reference in New Issue
Block a user