Lines Matching refs:function
33 function TestWithProxies(test, x, y, z) {
35 test(function(h) {return Proxy.createFunction(h, function() {})}, x, y, z)
41 function TestForIn(properties, handler) {
45 function TestForIn2(create, properties, handler) {
53 enumerate: function() { return [0, "a"] }
57 enumerate: function() { return this.enumerate2() },
58 enumerate2: function() { return [null, "a"] }
62 getPropertyNames: function() { return ["a", "b", "c", "d", "e"] },
63 getPropertyDescriptor: function(k) {
75 get: function(pr, pk) {
76 return function() { return ["b", "a", 0, "c"] }
84 function TestForInDerived(properties, handler) {
88 function TestForInDerived2(create, properties, handler) {
104 enumerate: function() { return [0, "a"] },
105 getPropertyDescriptor: function(k) {
111 enumerate: function() { return this.enumerate2() },
112 enumerate2: function() { return [null, "a"] },
113 getPropertyDescriptor: function(k) {
119 getPropertyNames: function() { return ["a", "b", "c", "d", "e"] },
120 getPropertyDescriptor: function(k) {
135 function TestForInThrow(handler) {
139 function TestForInThrow2(create, handler) {
142 assertThrows(function(){ for (var x in p) {} }, "myexn")
143 assertThrows(function(){ for (var x in o) {} }, "myexn")
147 enumerate: function() { throw "myexn" }
151 enumerate: function() { return this.enumerate2() },
152 enumerate2: function() { throw "myexn" }
156 getPropertyNames: function() { throw "myexn" }
160 getPropertyNames: function() { return ["a"] },
161 getPropertyDescriptor: function() { throw "myexn" }
165 get: function(pr, pk) {
166 return function() { throw "myexn" }