blob: 57f4223e15adae4dd21922d2ef74b51516498dfe [file] [log] [blame]
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
VM:1 Uncaught undefined
(anonymous) @ VM:1
Running: testThrowNumber
throw 1
VM:1 Uncaught 1
(anonymous) @ VM:1
Running: testThrowString
throw 'asdf'
VM:1 Uncaught asdf
(anonymous) @ VM:1
Running: testThrowObject
throw {a:42}
VM:1 Uncaught {a: 42}
(anonymous) @ VM:1
Running: testThrowError
throw new Error('asdf')
VM:1 Uncaught Error: asdf
(anonymous) @ VM:1