mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 23:06:37 +01:00
6d1170f06c
Co-authored-by: Mark Stacey <markjstacey@gmail.com> Co-authored-by: ricky <ricky.miller@gmail.com> Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com> Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com> Co-authored-by: legobt <6wbvkn0j@anonaddy.me> Co-authored-by: Pedro Figueiredo <pedro.figueiredo@consensys.net>
19 lines
552 B
Diff
19 lines
552 B
Diff
diff --git a/typed.js b/typed.js
|
|
index fe9effd2bfb56b509a124e71936a9f1a0b0d8091..d030b5afcb9d35a595f2cb888d892876949f7da2 100644
|
|
--- a/typed.js
|
|
+++ b/typed.js
|
|
@@ -22,9 +22,11 @@ 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;
|
|
|
|
function createError(opts) {
|