Commit dc99761f authored by antonm@chromium.org's avatar antonm@chromium.org

Minor cosmetic changes.

Review URL: http://codereview.chromium.org/6875003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7646 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ac039b50
...@@ -131,7 +131,7 @@ void MessageHandler::ReportMessage(Isolate* isolate, ...@@ -131,7 +131,7 @@ void MessageHandler::ReportMessage(Isolate* isolate,
Handle<Object> callback_data(listener.get(1)); Handle<Object> callback_data(listener.get(1));
{ {
// Do not allow exceptions to propagate. // Do not allow exceptions to propagate.
v8::TryCatch tryCatch; v8::TryCatch try_catch;
callback(api_message_obj, v8::Utils::ToLocal(callback_data)); callback(api_message_obj, v8::Utils::ToLocal(callback_data));
} }
if (isolate->has_scheduled_exception()) { if (isolate->has_scheduled_exception()) {
......
...@@ -8711,6 +8711,8 @@ THREADED_TEST(ExceptionsDoNotPropagatePastTryCatch) { ...@@ -8711,6 +8711,8 @@ THREADED_TEST(ExceptionsDoNotPropagatePastTryCatch) {
if (callback != NULL) { if (callback != NULL) {
V8::AddMessageListener(callback); V8::AddMessageListener(callback);
} }
// Some small number to control number of times message handler should
// throw an exception.
call_depth = 5; call_depth = 5;
ExpectFalse( ExpectFalse(
"var thrown = false;\n" "var thrown = false;\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment