Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Placate exception check validation in sanitizeRemoteFunctionException.
https://bugs.webkit.org/show_bug.cgi?id=260750 rdar://114477714 Reviewed by Justin Michaud. sanitizeRemoteFunctionException() can call JSValue::toWTFString() which may throw under certain circumstances. However, it is only called here if exceptionValue.isPrimitive() i.e. it will never throw. However, the exception check validator does not know this. So, we added an `ASSERT(!scope.exception())` to placate it. However, if we're forcing exception check validation on a Release build, the ASSERT turns into a no-op. The fix is to use EXCEPTION_ASSERT here instead. * Source/JavaScriptCore/interpreter/Interpreter.cpp: (JSC::sanitizeRemoteFunctionException): Canonical link: https://commits.webkit.org/267311@main
- Loading branch information