Skip to main content

invalid_string_length

Function invalid_string_length 

Source
pub fn invalid_string_length() -> String
Expand description

The error V8 raises for a string operation whose RESULT would exceed MAX_STRING_LENGTH. It is raised from the length arithmetic, before any allocation: 'a'.repeat(2**40) throws promptly on node where node-js used to sit building a 1 TiB String until it was killed.