Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(902)

Unified Diff: WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp

Issue 9572031: Don't be so CRASH happy in the bindings layer. (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp
===================================================================
--- WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp (revision 109601)
+++ WebCore/bindings/v8/custom/V8CustomSQLStatementErrorCallback.cpp (working copy)
@@ -59,7 +59,8 @@
v8::Handle<v8::Value> transactionHandle = toV8(transaction);
v8::Handle<v8::Value> errorHandle = toV8(error);
if (transactionHandle.IsEmpty() || errorHandle.IsEmpty()) {
- CRASH();
+ if (!isScriptControllerTerminating())
+ CRASH();
return true;
}
« no previous file with comments | « WebCore/bindings/v8/WorkerScriptController.cpp ('k') | WebCore/bindings/v8/custom/V8MutationCallbackCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698