Lines Matching refs:caught
31 var caught = 0;
34 try { eval("var a"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
36 try { eval("var a = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
40 try { eval("var b"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
42 try { eval("var b = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
46 try { eval("const c"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
48 try { eval("const c = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
52 try { eval("const d"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
54 try { eval("const d = 1"); } catch (e) { caught++; assertTrue(e instanceof TypeError); }
57 assertEquals(0, caught);