Lines Matching refs:assertThrows
26 assertThrows(context[0] + code + context[1] + "; throw new TypeError();",
30 assertThrows(context[0] + code + context[1], SyntaxError);
46 assertThrows("function undefined() {'use strong';}", SyntaxError);
50 assertThrows("function* undefined() {'use strong';}", SyntaxError);
54 assertThrows("(function undefined() {'use strong';});", SyntaxError);
56 assertThrows("{foo: (function undefined(){'use strong';})};", SyntaxError);
60 assertThrows("(function* undefined() {'use strong';})", SyntaxError);
62 assertThrows("{foo: (function* undefined(){'use strong';})};", SyntaxError);
67 assertThrows("function foo(a, b, undefined, c, d) {'use strong';}",
72 assertThrows("function* foo(a, b, undefined, c, d) {'use strong';}",
77 assertThrows("(function foo(a, b, undefined, c, d) {'use strong';})",
80 assertThrows("{foo: (function foo(a, b, undefined, c, d) {'use strong';})};",
85 assertThrows("(function* foo(a, b, undefined, c, d) {'use strong';})",
88 assertThrows("{foo: (function* foo(a, b, undefined, c, d) {'use strong';})};",
94 assertThrows("class C { foo(a, b, undefined, c, d) {'use strong';} }",
99 assertThrows("class C { *foo(a, b, undefined, c, d) {'use strong';} }",
104 assertThrows("({ foo(a, b, undefined, c, d) {'use strong';} });", SyntaxError);
108 assertThrows("({ *foo(a, b, undefined, c, d) {'use strong';} });", SyntaxError);
112 assertThrows("class undefined {'use strong'}", SyntaxError);
116 assertThrows("(class undefined {'use strong'});", SyntaxError);
138 assertThrows("let o = { set foo(undefined) {'use strong';} }", SyntaxError);
185 assertThrows(function() {
191 assertThrows("(undefined => {'use strong';});");
194 assertThrows("((undefined, b, c) => {'use strong';});");
197 assertThrows("((a, undefined, c) => {'use strong';});");
200 assertThrows("((a, b, undefined) => {'use strong';});");