[pull] main from oven-sh:main
Merged
PU
4mo ago+51+51+01234567890123456789-40-40-01234567890123456789
See Commits and Changes for more details.
Created by pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? đź’– Please sponsor : )
Summary by cubic
Fixes exception-scope handling in inspector host functions to stop “Unchecked JS exception” aborts during Runtime.evaluate. Hardens JSON parsing to fail gracefully on long-string OOM by throwing a RangeError instead of crashing.
- Bug Fixes
- Inspector: Release ThrowScope before tail-calling in
JSInjectedScriptHostPrototype.cppandJSJavaScriptCallFramePrototype.cppusing RELEASE_AND_RETURN(scope, ...), preventing false “Unchecked JS exception” undervalidateExceptionChecks=1. - JSON parsing: Long string values now allocate with
StringImpl::tryCreateUninitialized; failures return nullptr viatryMakeJSStringand surface inLiteralParser::parsePrimitiveValue, which now throws “RangeError: Out of memory.”
- Inspector: Release ThrowScope before tail-calling in