A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/patches/error+7.0.2.patch

16 lines
524 B

diff --git a/node_modules/error/typed.js b/node_modules/error/typed.js
index fe9effd..e554568 100644
--- a/node_modules/error/typed.js
+++ b/node_modules/error/typed.js
@@ -22,8 +22,10 @@ function TypedError(args) {
args.name = errorName[0].toUpperCase() + errorName.substr(1);
}
- extend(createError, args);
createError._name = args.name;
+ //remove args.name, name is not extensible under strict mode (lavamoat)
+ delete args.name
+ extend(createError, args);
return createError;