1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/development/build
Erik Marks 1175b4bfa7
Make all named intrinsics non-modifiable (#11953)
This PR makes ~all named intrinsics in all of our JavaScript processes non-modifiable. A named intrinsic is any property specified by the ECMAScript specification that exists on `globalThis` when the JavaScript process starts. We say that a property is non-modifiable if it is non-configurable and non-writable. We make exceptions for properties that meet any of the following criteria:

1. Properties that are non-configurable by the time `lockdown-run.js` is executed are not modified, because they can't be.
2. Properties that have accessor properties (`get` or `set`) are made non-configurable, but their writability cannot be modified, and is therefore left unchanged. It's unclear how many of the named intrinsics this applies to, if any, but it's good defensive programming, regardless.
2021-08-30 14:30:48 -07:00
..
display.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
etc.js Migrate version from _base manifest to package.json (#11029) 2021-05-10 14:16:03 -07:00
index.js Add Lavamoat to build system (#9939) 2021-02-22 22:43:29 +08:00
manifest.js Migrate version from _base manifest to package.json (#11029) 2021-05-10 14:16:03 -07:00
sass-compiler.js Add Lavamoat to build system (#9939) 2021-02-22 22:43:29 +08:00
scripts.js Adding trezor script/html to standardSubtask (build system) (#11874) 2021-08-18 04:26:44 -07:00
static.js Make all named intrinsics non-modifiable (#11953) 2021-08-30 14:30:48 -07:00
styles.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
task.js Build - refactor for bundle factoring and swappable runtime (#11080) 2021-07-15 10:59:34 -07:00