MCPcopy Create free account
hub / github.com/denoland/std / apply

Function apply

testing/time.ts:83–85  ·  view source on GitHub ↗
(_target, _thisArg, _args)

Source from the content-addressed store, hash-verified

81 return new _internals.Date(...args);
82 },
83 apply(_target, _thisArg, _args) {
84 return new _internals.Date(fakeTimeNow()).toString();
85 },
86 get(target, prop, receiver) {
87 if (prop === "now") {
88 return fakeTimeNow;

Callers

nothing calls this directly

Calls 2

fakeTimeNowFunction · 0.85
toStringMethod · 0.45

Tested by

no test coverage detected