get-intrinsic
get-intrinsic copied to clipboard
Get and robustly cache all JS language-level intrinsics at first require time.
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more. > [!WARNING] These dependencies are deprecated: | Datasource | Name | Replacement PR? |...
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [nyc](https://istanbul.js.org/) ([source](https://togithub.com/istanbuljs/nyc)) | devDependencies | major | [`^10.3.2` -> `^15.0.0`](https://renovatebot.com/diffs/npm/nyc/10.3.2/15.1.0) |...
https://github.com/ljharb/get-intrinsic/blob/1c8305b5365827c9b6fc785434aac0e1328ff2f5/index.js#L12 Hi, I was just wondering why eval is being used here instead of just hard-coding the values? Is this done in order to avoid, say, throwing uncatchable parser/syntax errors...
Under some environments like WeChat Mini Program, built-in intrinsics are rewritten to prevent further modification. And the over-written code use getter/setter to hook property access and setting. For example, when...