babel-plugin-transform-es3-member-expression-literals
Advanced tools
Comparing version 7.0.0-alpha.15 to 7.0.0-alpha.16
@@ -7,3 +7,2 @@ "use strict"; | ||
var t = _ref.types; | ||
return { | ||
@@ -14,4 +13,4 @@ visitor: { | ||
var node = _ref2.node; | ||
var prop = node.property; | ||
var prop = node.property; | ||
if (!node.computed && t.isIdentifier(prop) && !t.isValidIdentifier(prop.name)) { | ||
@@ -18,0 +17,0 @@ node.property = t.stringLiteral(prop.name); |
{ | ||
"name": "babel-plugin-transform-es3-member-expression-literals", | ||
"version": "7.0.0-alpha.15", | ||
"version": "7.0.0-alpha.16", | ||
"description": "Ensure that reserved words are quoted in property accesses", | ||
@@ -12,4 +12,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es3-member-expression-literals", | ||
"devDependencies": { | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.15" | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.16" | ||
} | ||
} |
1652