Lines Matching refs:function
8 (function TestSingleClass() {
9 function f(x) {
14 function ClassD() { }
24 (function TestClassHierarchy() {
25 function f(x) {
26 return function g(y) { x++; return x + y; };
29 function Base() {}
30 function Derived() { }
43 (function TestErrorCases() {
44 var sFun = Function.prototype.toMethod;
45 assertThrows(function() { sFun.call({}); }, TypeError);
46 assertThrows(function() { sFun.call({}, {}); }, TypeError);
47 function f(){};
48 assertThrows(function() { f.toMethod(1); }, TypeError);
52 (function TestPrototypeChain() {
55 function f() { }
57 function g() { }
70 (function TestBoundFunction() {
75 function f(x, y, z, w) {
94 (function TestOptimized() {
95 function f(o) {
109 (function TestExtensibility() {
110 function f() {}