-
Iain Ireland authored
nsContentUtils::IsPatternMatching calls into SpiderMonkey several times to validate and execute a regexp. It assumes that JS::NewUCRegExpObject can only fail if the pattern is invalid. However, in the case of OOM or stack overflow, this is false. In the previous patch, we added a new API for pattern matching. This patch uses the new function to clean up the error handling in IsPatternMatching. Differential Revision: https://phabricator.services.mozilla.com/D74501
96b0cd78