Skip to content

Commit

Permalink
Fixup: perform String cast on map keys, not values
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison committed Jul 7, 2020
1 parent a4035c8 commit abdd147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-block-scoping/src/index.js
Expand Up @@ -340,7 +340,7 @@ const loopVisitor = {

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

Expand Down

0 comments on commit abdd147

Please sign in to comment.