Lines Matching defs:const
2 const {
16 const {
22 const { kEmptyObject } = require('internal/util');
23 const {
29 const { MockTimers } = require('internal/test_runner/mock/mock_timers');
80 const nextCall = this.#calls.length;
81 const call = onCall ?? nextCall;
90 const { descriptor, object, original, methodName } = this.#restore;
122 const nextCall = this.#calls.length;
123 const mock = this.#mocks.get(nextCall);
124 const impl = mock ?? this.#implementation;
135 const { nextImpl, restore, trackCall } = MockFunctionContext.prototype;
177 const { times = Infinity } = options;
179 const ctx = new MockFunctionContext(implementation, { __proto__: null, original }, times);
213 const {
228 const descriptor = findMethodOnPrototypeChain(objectOrFunction, methodName);
246 const restore = { __proto__: null, descriptor, object: objectOrFunction, methodName };
247 const impl = implementation === kDefaultFunction ?
249 const ctx = new MockFunctionContext(impl, restore, times);
250 const mock = this.#setupMock(ctx, original);
251 const mockDescriptor = {
298 const { getter = true } = options;
338 const { setter = true } = options;
372 const mock = new Proxy(fnToMatch, {
375 const fn = FunctionPrototypeCall(nextImpl, ctx);
400 const realTarget = FunctionPrototypeCall(nextImpl, ctx);