[pull] main from oven-sh:main

Merged
PU
4mo ago
+51-40

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.cpp and JSJavaScriptCallFramePrototype.cpp using RELEASE_AND_RETURN(scope, ...), preventing false “Unchecked JS exception” under validateExceptionChecks=1.
    • JSON parsing: Long string values now allocate with StringImpl::tryCreateUninitialized; failures return nullptr via tryMakeJSString and surface in LiteralParser::parsePrimitiveValue, which now throws “RangeError: Out of memory.”