fix(es/helpers): Override mistake in _interop_require_wildcard (#8076)

**Related issue:**

 - https://github.com/babel/babel/issues/15995
This commit is contained in:
magic-akari 2023-10-07 09:20:39 -05:00 committed by GitHub
parent 4843266545
commit 1346528477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ function _interop_require_wildcard(obj, nodeInterop) {
if (cache && cache.has(obj)) {
return cache.get(obj);
}
var newObj = {};
var newObj = { __proto__: null };
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var key in obj) {
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {

View File

@ -16,7 +16,7 @@ export function _interop_require_wildcard(obj, nodeInterop) {
if (cache && cache.has(obj)) return cache.get(obj);
var newObj = {};
var newObj = { __proto__: null };
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var key in obj) {