Remove NOTREACHED verifying no previous exceptions are set in PepperTryCatch
commit36ba52d60b693dfe4980b2b73169988f13251324
authorraymes <raymes@chromium.org>
Wed, 10 Sep 2014 00:11:37 +0000 (9 17:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 10 Sep 2014 00:17:11 +0000 (10 00:17 +0000)
tree8d3dfb9920b8ca0af8a824d0de65114961c38296
parentba21e464cf9388db1713605b6dfac70689eb2f4c
Remove NOTREACHED verifying no previous exceptions are set in PepperTryCatch

When setting an exception we check that no other exceptions have been set.
However, sometimes it is preferable not to bail out of the
codepath immediately because the code becomes messier. In particular, if
the context is destroyed, an exception will be set which can happen upon
construction of the try/catch. Keeping this NOTREACHED means that we have to check
for an exception after the construction of every try/catch. I can't see a
problem with not checking the exception immediately - other operations will
fail and the result of the try-catch will eventually be set.

BUG=303491

Review URL: https://codereview.chromium.org/554173002

Cr-Commit-Position: refs/heads/master@{#294046}
content/renderer/pepper/pepper_try_catch.cc