Skip to content

Commit

Permalink
Revert "Experiment: filter keys via Object.prototype.hasOwnProperty.c…
Browse files Browse the repository at this point in the history
…all"

This reverts commit 491c093.
  • Loading branch information
jayaddison committed Jul 7, 2020
1 parent 491c093 commit bea1b56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/babel-plugin-transform-block-scoping/src/index.js
Expand Up @@ -340,9 +340,7 @@ const loopVisitor = {

function extendMap(map, obj) {
for (const key of Object.keys(obj)) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
map.set(key, obj[key]);
}
map.set(key, obj[key]);
}
}

Expand Down

0 comments on commit bea1b56

Please sign in to comment.