• Home
  • Raw
  • Download

Lines Matching refs:assertThrows

32 assertThrows("12 = 12", ReferenceError);
33 assertThrows("x++ = 12", ReferenceError);
34 assertThrows("eval('var x') = 12", ReferenceError);
35 assertThrows("if (false) 12 = 12", ReferenceError);
39 assertThrows("12++", ReferenceError);
40 assertThrows("12--", ReferenceError);
41 assertThrows("++12", ReferenceError);
42 assertThrows("--12", ReferenceError);
43 assertThrows("++(eval('12'))", ReferenceError);
44 assertThrows("(eval('12'))++", ReferenceError);
45 assertThrows("if (false) 12++", ReferenceError);
46 assertThrows("if (false) 12--", ReferenceError);
47 assertThrows("if (false) ++12", ReferenceError);
48 assertThrows("if (false) --12", ReferenceError);
53 assertThrows("for (12 in [1]) print(12);", ReferenceError);
54 assertThrows("for (eval('var x') in [1]) print(12);", ReferenceError);
55 assertThrows("if (false) for (12 in [1]) print(12);", ReferenceError);
59 assertThrows("for (12 = 1;;) print(12);", ReferenceError);
60 assertThrows("for (eval('var x') = 1;;) print(12);", ReferenceError);
61 assertThrows("if (false) for (12 = 1;;) print(12);", ReferenceError);
65 assertThrows("this = 42", ReferenceError);
66 assertThrows("function f() { this = 12; }", ReferenceError);
67 assertThrows("for (this in {x:3, y:4, z:5}) ;", ReferenceError);
68 assertThrows("for (this = 0;;) ;", ReferenceError);
69 assertThrows("this++", ReferenceError);
70 assertThrows("++this", ReferenceError);
71 assertThrows("this--", ReferenceError);
72 assertThrows("--this", ReferenceError);
73 assertThrows("if (false) this = 42", ReferenceError);
74 assertThrows("if (false) this++", ReferenceError);