JSLock should clear last exception when releasing the lock
authorkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jun 2018 21:51:04 +0000 (21:51 +0000)
committerkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Jun 2018 21:51:04 +0000 (21:51 +0000)
commitaf6eed49e5947b98cac26c136508e7236fc30b3f
tree62b8a803cfc2b3e5d9bebef2af3d2972d5270851
parent81af26bccca8edc51528b24006645cde8e9c77a0
JSLock should clear last exception when releasing the lock
https://bugs.webkit.org/show_bug.cgi?id=186277

Reviewed by Mark Lam.

If we don't clear the last exception we essentially leak the
object and everything referenced by it until another exception is
thrown.

* runtime/JSLock.cpp:
(JSC::JSLock::willReleaseLock):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@232482 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/JSLock.cpp