Lines Matching refs:method
10 method() {
14 assertEquals(42, object.method());
20 method() {
24 object.method();
30 method() {
35 var desc = Object.getOwnPropertyDescriptor(object, 'method');
47 method() {}
50 assertEquals(Function.prototype, Object.getPrototypeOf(object.method));
56 method() {}
60 new object.method;
67 method() {},
71 var f = object.method;
72 assertEquals('method', f.name);
81 var method = 'local';
84 method() {
86 assertEquals('local', method);
89 object.method();
96 method() {}
98 var f = object.method;
109 method() { "use strict"; }
111 assertFalse(obj.method.hasOwnProperty("arguments"));
112 assertThrows(function() { return obj.method.arguments; }, TypeError);
113 assertThrows(function() { obj.method.arguments = {}; }, TypeError);
115 assertFalse(obj.method.hasOwnProperty("caller"));
116 assertThrows(function() { return obj.method.caller; }, TypeError);
117 assertThrows(function() { obj.method.caller = {}; }, TypeError);
123 method() {}
125 assertFalse(obj.method.hasOwnProperty("arguments"));
126 assertThrows(function() { return obj.method.arguments; }, TypeError);
127 assertThrows(function() { obj.method.arguments = {}; }, TypeError);
129 assertFalse(obj.method.hasOwnProperty("caller"));
130 assertThrows(function() { return obj.method.caller; }, TypeError);
131 assertThrows(function() { obj.method.caller = {}; }, TypeError);
137 method() { 42; }
139 assertEquals('method() { 42; }', object.method.toString());
145 method() { return 42; }
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'));
169 *method() {
173 var g = object.method();
181 *method() {
185 var g = object.method();
193 *method() {}
195 var g = object.method();
202 *method() {
207 var desc = Object.getOwnPropertyDescriptor(object, 'method');
221 *method() {}
224 var desc = Object.getOwnPropertyDescriptor(object.method, 'prototype');
234 *method() {}
238 Object.getPrototypeOf(object.method));
244 *method() {
249 assertThrows(()=>new object.method());
255 *method() {},
259 var f = object.method;
260 assertEquals('method', f.name);
269 var method = 'local';
272 *method() {
274 assertEquals('local', method);
277 var g = object.method();
285 *method() { yield 1; }
287 assertEquals('*method() { yield 1; }', object.method.toString());