Fixed T6675

https://phabricator.babeljs.io/T6675.
This commit is contained in:
TSUYUSATO Kitsune
2015-11-22 03:06:21 +09:00
parent 59ec2b2dfb
commit dc596d73d3
3 changed files with 167 additions and 34 deletions

View File

@@ -0,0 +1,2 @@
"foo"
.split(" ")

View File

@@ -0,0 +1,138 @@
{
"type": "File",
"start": 0,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 11
}
},
"program": {
"type": "Program",
"start": 0,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 11
}
},
"sourceType": "script",
"body": [
{
"type": "ExpressionStatement",
"start": 0,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 11
}
},
"expression": {
"type": "CallExpression",
"start": 0,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 11
}
},
"callee": {
"type": "MemberExpression",
"start": 0,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 6
}
},
"object": {
"type": "StringLiteral",
"start": 0,
"end": 5,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 5
}
},
"extra": {
"rawValue": "foo",
"raw": "\"foo\""
},
"value": "foo"
},
"property": {
"type": "Identifier",
"start": 7,
"end": 12,
"loc": {
"start": {
"line": 2,
"column": 1
},
"end": {
"line": 2,
"column": 6
}
},
"name": "split"
},
"computed": false
},
"arguments": [
{
"type": "StringLiteral",
"start": 13,
"end": 16,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 10
}
},
"extra": {
"rawValue": " ",
"raw": "\" \""
},
"value": " "
}
]
}
}
],
"directives": []
}
}