Index: LayoutTests/inspector/console/console-eval-throw-expected.txt |
diff --git a/LayoutTests/inspector/console/console-eval-throw-expected.txt b/LayoutTests/inspector/console/console-eval-throw-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fe591bb0fa02b8aed57e5dd15d6abce1a3520c2a |
--- /dev/null |
+++ b/LayoutTests/inspector/console/console-eval-throw-expected.txt |
@@ -0,0 +1,23 @@ |
+Tests that evaluating 'throw undefined|1|string|object|Error' in the console won't crash the browser and correctly reported. Bug 59611. |
+ |
+ |
+Running: testThrowUndefined |
+throw undefined |
+Uncaught undefined VM:2 |
+ |
+Running: testThrowNumber |
+throw 1 |
+Uncaught 1 VM:2 |
+ |
+Running: testThrowString |
+throw 'asdf' |
+Uncaught asdf VM:2 |
+ |
+Running: testThrowObject |
+throw {a:42} |
+Uncaught Object {a: 42} VM:2 |
+ |
+Running: testThrowError |
+throw new Error('asdf') |
+Uncaught Error: asdf VM:2 |
+ |