unoverload Literal AST node

This commit is contained in:
Sebastian McKenzie
2015-09-01 04:49:16 +01:00
parent 95f061b76e
commit 8d7b3c462f
565 changed files with 3239 additions and 1120 deletions

View File

@@ -382,7 +382,7 @@ export default function(instance) {
instance.extend("parseExprAtom", function(inner) {
return function(refShortHandDefaultPos) {
if (this.match(tt.jsxText)) {
var node = this.parseLiteral(this.state.value);
var node = this.parseLiteral(this.state.value, "JSXText");
// https://github.com/babel/babel/issues/2078
node.rawValue = null;
return node;