Lines Matching refs:object
9 var object = { variable in TestBasics
14 assertEquals(42, object.method());
19 var object = { variable in TestThis
21 assertEquals(object, this);
24 object.method();
29 var object = { variable in TestDescriptor
35 var desc = Object.getOwnPropertyDescriptor(object, 'method');
46 var object = { variable in TestProto
50 assertEquals(Function.prototype, Object.getPrototypeOf(object.method));
55 var object = { variable in TestNotConstructable
60 new object.method;
66 var object = { variable in TestFunctionName
71 var f = object.method;
73 var g = object[1];
75 var h = object[2];
83 var object = { variable in TestNoBinding
89 object.method();
95 var object = { variable in TestNoPrototype
98 var f = object.method;
136 var object = { variable in TestToString
139 assertEquals('method() { 42; }', object.method.toString());
144 var object = { variable in TestOptimized
147 assertEquals(42, object.method());
148 assertEquals(42, object.method());
149 %OptimizeFunctionOnNextCall(object.method);
150 assertEquals(42, object.method());
151 assertFalse(object.method.hasOwnProperty('prototype'));
168 var object = { variable in TestGeneratorBasics
173 var g = object.method();
180 var object = { variable in TestGeneratorThis
185 var g = object.method();
186 assertIteratorResult(object, false, g.next());
192 var object = { variable in TestGeneratorSymbolIterator
195 var g = object.method();
201 var object = { variable in TestGeneratorDescriptor
207 var desc = Object.getOwnPropertyDescriptor(object, 'method');
220 var object = { variable in TestGeneratorPrototypeDescriptor
224 var desc = Object.getOwnPropertyDescriptor(object.method, 'prototype');
233 var object = { variable in TestGeneratorProto
238 Object.getPrototypeOf(object.method));
243 var object = { variable in TestGeneratorConstructable
249 var g = new object.method();
256 var object = { variable in TestGeneratorName
261 var f = object.method;
263 var g = object[1];
265 var h = object[2];
273 var object = { variable in TestGeneratorNoBinding
279 var g = object.method();
286 var object = { variable in TestGeneratorToString
289 assertEquals('*method() { yield 1; }', object.method.toString());
294 var object = { variable in TestProtoName
299 assertEquals(Object.prototype, Object.getPrototypeOf(object));
300 assertEquals(1, object.__proto__());
306 var object = { variable in TestProtoName2
312 assertEquals(p, Object.getPrototypeOf(object));
313 assertEquals(1, object.__proto__());