get-intrinsic
Advanced tools
Comparing version 1.1.3 to 1.2.0
@@ -8,2 +8,14 @@ # Changelog | ||
## [v1.2.0](https://github.com/ljharb/get-intrinsic/compare/v1.1.3...v1.2.0) - 2023-01-19 | ||
### Commits | ||
- [actions] update checkout action [`ca6b12f`](https://github.com/ljharb/get-intrinsic/commit/ca6b12f31eaacea4ea3b055e744cd61623385ffb) | ||
- [Dev Deps] update `@ljharb/eslint-config`, `es-abstract`, `object-inspect`, `tape` [`41a3727`](https://github.com/ljharb/get-intrinsic/commit/41a3727d0026fa04273ae216a5f8e12eefd72da8) | ||
- [Fix] ensure `Error.prototype` is undeniable [`c511e97`](https://github.com/ljharb/get-intrinsic/commit/c511e97ae99c764c4524b540dee7a70757af8da3) | ||
- [Dev Deps] update `aud`, `es-abstract`, `tape` [`1bef8a8`](https://github.com/ljharb/get-intrinsic/commit/1bef8a8fd439ebb80863199b6189199e0851ac67) | ||
- [Dev Deps] update `aud`, `es-abstract` [`0d41f16`](https://github.com/ljharb/get-intrinsic/commit/0d41f16bcd500bc28b7bfc98043ebf61ea081c26) | ||
- [New] add `BigInt64Array` and `BigUint64Array` [`a6cca25`](https://github.com/ljharb/get-intrinsic/commit/a6cca25f29635889b7e9bd669baf9e04be90e48c) | ||
- [Tests] use `gopd` [`ecf7722`](https://github.com/ljharb/get-intrinsic/commit/ecf7722240d15cfd16edda06acf63359c10fb9bd) | ||
## [v1.1.3](https://github.com/ljharb/get-intrinsic/compare/v1.1.2...v1.1.3) - 2022-09-12 | ||
@@ -10,0 +22,0 @@ |
10
index.js
@@ -65,2 +65,4 @@ 'use strict'; | ||
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt, | ||
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array, | ||
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array, | ||
'%Boolean%': Boolean, | ||
@@ -121,2 +123,10 @@ '%DataView%': typeof DataView === 'undefined' ? undefined : DataView, | ||
try { | ||
null.error; // eslint-disable-line no-unused-expressions | ||
} catch (e) { | ||
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229 | ||
var errorProto = getProto(getProto(e)); | ||
INTRINSICS['%Error.prototype%'] = errorProto; | ||
} | ||
var doEval = function doEval(name) { | ||
@@ -123,0 +133,0 @@ var value; |
{ | ||
"name": "get-intrinsic", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "Get and robustly cache all JS language-level intrinsics at first require time", | ||
@@ -51,7 +51,7 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^21.0.0", | ||
"aud": "^2.0.0", | ||
"@ljharb/eslint-config": "^21.0.1", | ||
"aud": "^2.0.2", | ||
"auto-changelog": "^2.4.0", | ||
"call-bind": "^1.0.2", | ||
"es-abstract": "^1.20.2", | ||
"es-abstract": "^1.21.1", | ||
"es-value-fixtures": "^1.4.2", | ||
@@ -61,2 +61,3 @@ "eslint": "=8.8.0", | ||
"for-each": "^0.3.3", | ||
"gopd": "^1.0.1", | ||
"make-async-function": "^1.0.0", | ||
@@ -68,5 +69,5 @@ "make-async-generator-function": "^1.0.0", | ||
"nyc": "^10.3.2", | ||
"object-inspect": "^1.12.2", | ||
"object-inspect": "^1.12.3", | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.6.0" | ||
"tape": "^5.6.3" | ||
}, | ||
@@ -73,0 +74,0 @@ "auto-changelog": { |
@@ -15,3 +15,3 @@ 'use strict'; | ||
var v = require('es-value-fixtures'); | ||
var $gOPD = require('es-abstract/helpers/getOwnPropertyDescriptor'); | ||
var $gOPD = require('gopd'); | ||
var DefinePropertyOrThrow = require('es-abstract/2021/DefinePropertyOrThrow'); | ||
@@ -18,0 +18,0 @@ |
Sorry, the diff of this file is not supported yet
38691
535
19