From e15030034d5c6103b163735f47e485ab3d204b0c Mon Sep 17 00:00:00 2001 From: ericjwittrock Date: Sun, 28 Apr 2024 17:34:57 -0500 Subject: [PATCH] Fix error when object prototype is frozen --- src/helpers/helpers.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/helpers.config.ts b/src/helpers/helpers.config.ts index db0b125e9e3..3b1dd5b695a 100644 --- a/src/helpers/helpers.config.ts +++ b/src/helpers/helpers.config.ts @@ -220,7 +220,7 @@ function _cached( prop: string, resolve: () => unknown ) { - if (Object.prototype.hasOwnProperty.call(target, prop)) { + if (Object.prototype.hasOwnProperty.call(target, prop) || prop === 'constructor') { return target[prop]; }