Lines Matching refs:function
28 // From within 'eval', the name of the enclosing function should be
31 var f = function y() { return typeof y; };
32 assertEquals("function", f());
35 f = function y() { return eval('typeof y'); };
36 assertEquals("function", f());
39 f = function y() { y = 3; return typeof y; };
40 assertEquals("function", f());
43 f = function y() { y += 3; return typeof y; };
44 assertEquals("function", f());
47 f = function y() { y &= y; return typeof y; };
48 assertEquals("function", f());
51 f = function y() { y = 3; return eval('typeof y'); }
52 assertEquals("function", f());
55 f = function y() { var y = 3; return typeof y; }
59 f = function y() { var y = 3; return eval('typeof y'); }
63 f = function y() { eval('y = 3'); return typeof y; }
64 assertEquals("function", f());
67 f = function y() { eval('y = 3'); return eval('typeof y'); }
68 assertEquals("function", f());
71 f = function y() { eval('var y = 3'); return typeof y; }
75 f = function y() { eval('var y = 3'); return eval('typeof y'); }