| 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) {
|
| + }
|
| +}
|
|
|