Home | History | Annotate | Download | only in strong

Lines Matching refs:assertThrows

13   assertThrows("'use strong'; arguments", SyntaxError);
14 assertThrows("'use strong'; function f() { arguments }", SyntaxError);
15 assertThrows("'use strong'; function* g() { arguments }", SyntaxError);
16 assertThrows("'use strong'; let f = function() { arguments }", SyntaxError);
17 assertThrows("'use strong'; let g = function*() { arguments }", SyntaxError);
18 assertThrows("'use strong'; let f = () => arguments", SyntaxError);
20 assertThrows("'use strong'; let arguments", SyntaxError);
21 assertThrows("'use strong'; function f(arguments) {}", SyntaxError);
22 assertThrows("'use strong'; function* g(arguments) {}", SyntaxError);
23 assertThrows("'use strong'; let f = (arguments) => {}", SyntaxError);
29 assertThrows(function(){ f.arguments = 0 }, TypeError);
30 assertThrows(function(){ g.arguments = 0 }, TypeError);
36 assertThrows(function(){ f.caller = 0 }, TypeError);
37 assertThrows(function(){ g.caller = 0 }, TypeError);
43 assertThrows(function(){ f.callee = 0 }, TypeError);
44 assertThrows(function(){ g.callee = 0 }, TypeError);
57 assertThrows(function(){ f = 0 }, TypeError);
58 assertThrows(function(){ g = 0 }, TypeError);
59 assertThrows(function(){ f2 = 0 }, TypeError);
60 assertThrows(function(){ g2 = 0 }, TypeError);
68 assertThrows(function(){ f.a = 0 }, TypeError);
69 assertThrows(function(){ g.a = 0 }, TypeError);
70 assertThrows(function(){ Object.defineProperty(f, "a", {value: 0}) }, TypeError);
71 assertThrows(function(){ Object.defineProperty(g, "a", {value: 0}) }, TypeError);
72 assertThrows(function(){ Object.setPrototypeOf(f, {}) }, TypeError);
73 assertThrows(function(){ Object.setPrototypeOf(g, {}) }, TypeError);
79 assertThrows(function(){ f.prototype = 0 }, TypeError);
80 assertThrows(function(){ g.prototype = 0 }, TypeError);
81 assertThrows(function(){ f.prototype.a = 0 }, TypeError);
85 assertThrows(function(){ new f }, TypeError);
86 assertThrows(function(){ new g }, TypeError);