Skip to content

Commit 6a96b4d

Browse files
author
homyakov
committed
Examine exception raised inside of eval()
1 parent d317166 commit 6a96b4d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎test/functional/ExceptionLab.html‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@
4646
function dumpException4() {
4747
dumpException(createException4());
4848
}
49+
50+
function dumpException5() {
51+
try {
52+
//eval("x.undef()");
53+
eval("getExceptionProps()");
54+
} catch (ex) {
55+
dumpException(ex);
56+
}
57+
}
4958
</script>
5059
</head>
5160
<body>
@@ -59,5 +68,6 @@
5968
<button onclick="dumpException2();">Exception 2</button>
6069
<button onclick="dumpException3();">Exception 3</button>
6170
<button onclick="dumpException4();">Exception 4</button>
71+
<button onclick="dumpException5();">Exception 5</button>
6272
</body>
6373
</html>

0 commit comments

Comments
 (0)