diff --git a/test/fake-timers-test.js b/test/fake-timers-test.js index 9f877eb7..516b194c 100644 --- a/test/fake-timers-test.js +++ b/test/fake-timers-test.js @@ -3881,9 +3881,14 @@ describe("FakeTimers", function () { return ["foo"]; } - Object.defineProperty(Performance.prototype, "getEntries", { - writeable: true, - }); + for (const propName of [ + "getEntries", + "getEntriesByName", + "getEntriesByType", + ]) + Object.defineProperty(Performance.prototype, propName, { + writable: true, + }); Performance.prototype.getEntries = noop; Performance.prototype.getEntriesByName = noop;