Skip to main content

JS_STRING_LEN_MAX

Constant JS_STRING_LEN_MAX 

Source
pub const JS_STRING_LEN_MAX: usize = _ /* 1_073_741_823usize */;
Expand description

The longest string this engine will build, which is the reference’s JS_STRING_LEN_MAX. text += text in a loop is the program that reaches it, and the ceiling is what turns that into InternalError: string too long instead of an overflow.