V8 can clear exception pending message, when should not do this.
The case: v8::TryCatch try_catch; CompileRun(try { CEvaluate('throw 1;'); } finally {}); CHECK(try_catch.HasCaught()); CHECK(!try_catch.Message().IsEmpty()); CEvaluate is native call. Last check is not passed without patch. Patch contains test TryCatchFinallyStoresMessageUsingTryCatchHandler with more details. R=yangguo@chromium.org, mstarzinger@chromium.org, vsevik@chromium.org Review URL: https://codereview.chromium.org/321763002 Patch from Alexey Kozyatinskiy <kozyatinskiy@google.com>. git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21755 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Showing
Please
register
or
sign in
to comment