Skip to content

Commit f785882

Browse files
authored
Fix error when object prototype is frozen (#11754)
1 parent 6daf4ba commit f785882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/helpers.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ function _cached(
220220
prop: string,
221221
resolve: () => unknown
222222
) {
223-
if (Object.prototype.hasOwnProperty.call(target, prop)) {
223+
if (Object.prototype.hasOwnProperty.call(target, prop) || prop === 'constructor') {
224224
return target[prop];
225225
}
226226

0 commit comments

Comments
 (0)