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

Unified Diff: WebCore/bindings/scripts/CodeGeneratorV8.pm

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
« no previous file with comments | « WebCore/bindings/js/WorkerScriptController.cpp ('k') | WebCore/bindings/scripts/test/V8/V8TestCallback.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/bindings/scripts/CodeGeneratorV8.pm
===================================================================
--- WebCore/bindings/scripts/CodeGeneratorV8.pm (revision 109601)
+++ WebCore/bindings/scripts/CodeGeneratorV8.pm (working copy)
@@ -2996,7 +2996,8 @@
my $paramName = $param->name;
push(@implContent, " v8::Handle<v8::Value> ${paramName}Handle = " . NativeToJSValue($param, $paramName) . ";\n");
push(@implContent, " if (${paramName}Handle.IsEmpty()) {\n");
- push(@implContent, " CRASH();\n");
+ push(@implContent, " if (!isScriptControllerTerminating())\n");
+ push(@implContent, " CRASH();\n");
push(@implContent, " return true;\n");
push(@implContent, " }\n");
push(@args, " ${paramName}Handle");
« no previous file with comments | « WebCore/bindings/js/WorkerScriptController.cpp ('k') | WebCore/bindings/scripts/test/V8/V8TestCallback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698