Lines Matching refs:methodName
90 const { descriptor, object, original, methodName } = this.#restore;
92 if (typeof methodName === 'string') {
94 ObjectDefineProperty(object, methodName, descriptor);
186 * @param {string} methodName - The name of the method to be tracked.
196 methodName,
200 validateStringOrSymbol(methodName, 'methodName');
228 const descriptor = findMethodOnPrototypeChain(objectOrFunction, methodName);
242 'methodName', original, 'must be a method',
246 const restore = { __proto__: null, descriptor, object: objectOrFunction, methodName };
268 ObjectDefineProperty(objectOrFunction, methodName, mockDescriptor);
277 * @param {string} methodName - The name of the getter method to be mocked.
287 methodName,
306 return this.method(object, methodName, implementation, {
317 * @param {string} methodName - The setter method to be mocked.
327 methodName,
346 return this.method(object, methodName, implementation, {
452 function findMethodOnPrototypeChain(instance, methodName) {
457 descriptor = ObjectGetOwnPropertyDescriptor(host, methodName);