Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REGRESSION(273782@main): Missing exception check in commonCallDirectE…
…val() https://bugs.webkit.org/show_bug.cgi?id=268942 <rdar://problem/122493988> Reviewed by Yusuke Suzuki. Since eval() may throw an exception, 273782@main moving throwScope.release() to come after it broke exception scope validation. Also, we would like to avoid calling setUpCall() in case of exception, reserving it only for indirect eval(). This change adds LLINT_CALL_CHECK_EXCEPTION() to fix both issues, and also makes eval() consistently return empty JSValue() in case of exception, which is non-observable code tweak. * Source/JavaScriptCore/interpreter/Interpreter.cpp: (JSC::eval): * Source/JavaScriptCore/llint/LLIntSlowPaths.cpp: (JSC::LLInt::commonCallDirectEval): Canonical link: https://commits.webkit.org/274264@main
- Loading branch information