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

Unified Diff: LayoutTests/inspector/sources/debugger/resources/framework.js

Issue 443943002: DevTools: Fix framework blackboxing for exceptions thrown inside V8 internal scripts. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed test Created 6 years, 4 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: LayoutTests/inspector/sources/debugger/resources/framework.js
diff --git a/LayoutTests/inspector/sources/debugger/resources/framework.js b/LayoutTests/inspector/sources/debugger/resources/framework.js
index 54fdd2b567f44b6742b181102301e1077b4b0d97..6b6926f910bb4ab58168e304de80de96e588e664 100644
--- a/LayoutTests/inspector/sources/debugger/resources/framework.js
+++ b/LayoutTests/inspector/sources/debugger/resources/framework.js
@@ -110,3 +110,25 @@ Framework.bind = function(func, thisObject, var_args)
};
return Framework_bound;
}
+
+Framework.throwInNative = function()
+{
+ var wrongJson = "})";
+ window["dummy"] = JSON.parse(wrongJson);
+}
+
+Framework.throwInNativeAndCatch = function()
+{
+ try {
+ Framework.throwInNative();
+ } catch(e) {
+ }
+}
+
+Framework.throwFrameworkExceptionAndCatch = function()
+{
+ try {
+ Framework.throwFrameworkException();
+ } catch(e) {
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698