/
output.json
51 lines (51 loc) 路 1.56 KB
/
output.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"type": "FunctionExpression",
"start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start":10,"end":23,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":23}},
"left": {
"type": "Identifier",
"start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"a"},
"name": "a"
},
"right": {
"type": "StringLiteral",
"start":14,"end":23,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":23}},
"extra": {
"rawValue": "default",
"raw": "\"default\""
},
"value": "default"
}
}
],
"body": {
"type": "BlockStatement",
"start":25,"end":40,"loc":{"start":{"line":1,"column":25},"end":{"line":1,"column":40}},
"body": [],
"directives": [
{
"type": "Directive",
"start":26,"end":39,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":39}},
"value": {
"type": "DirectiveLiteral",
"start":26,"end":38,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":38}},
"extra": {
"rawValue": "use strict",
"raw": "\"use strict\"",
"expressionValue": "use strict"
},
"value": "use strict"
}
}
]
},
"errors": [
"SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (1:0)"
]
}