1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/.yarn/patches/lavamoat-core-npm-12.4.0-cecca1a9b5.patch
Dan J Miller 8c550e78e9
patch lavamoat files to make v10.26.0 compatible with v78 of chrome (#18053)
Co-authored-by: Peter <53189696+PeterYinusa@users.noreply.github.com>
2023-03-08 14:08:24 -03:30

15 lines
667 B
Diff

diff --git a/src/kernelCoreTemplate.js b/src/kernelCoreTemplate.js
index 255b2637167de9e5da435fe2f7ea364cfb22f86b..c229f5067a64d0a2705fa2f07085b6cac42bca9c 100644
--- a/src/kernelCoreTemplate.js
+++ b/src/kernelCoreTemplate.js
@@ -124,7 +124,8 @@
if (shouldAvoidProp(propsToAvoid, prop)) {
continue
}
- if (Object.getOwnPropertyDescriptor(globalRef, prop)?.configurable === false) {
+ const globalRefPropertyDescriptor = Object.getOwnPropertyDescriptor(globalRef, prop);
+ if (globalRefPropertyDescriptor && globalRefPropertyDescriptor.configurable === false) {
continue
}
const desc = {