Skip to content

Commit

Permalink
Fix error when object prototype is frozen (#11754)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWittrock committed Apr 29, 2024
1 parent 6daf4ba commit f785882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/helpers.config.ts
Expand Up @@ -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];
}

Expand Down

0 comments on commit f785882

Please sign in to comment.