| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":58}}, |
| 4 |
"errors": [ |
| 5 |
"SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list. (2:5)" |
| 6 |
], |
| 7 |
"program": { |
| 8 |
"type": "Program", |
| 9 |
"start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":58}}, |
| 10 |
"sourceType": "script", |
| 11 |
"interpreter": null, |
| 12 |
"body": [ |
| 13 |
{ |
| 14 |
"type": "VariableDeclaration", |
| 15 |
"start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":5,"column":2,"index":58}}, |
| 16 |
"declarations": [ |
| 17 |
{ |
| 18 |
"type": "VariableDeclarator", |
| 19 |
"start":4,"end":57,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":5,"column":1,"index":57}}, |
| 20 |
"id": { |
| 21 |
"type": "Identifier", |
| 22 |
"start":4,"end":7,"loc":{"start":{"line":1,"column":4,"index":4},"end":{"line":1,"column":7,"index":7},"identifierName":"obj"}, |
| 23 |
"name": "obj" |
| 24 |
}, |
| 25 |
"init": { |
| 26 |
"type": "ObjectExpression", |
| 27 |
"start":10,"end":57,"loc":{"start":{"line":1,"column":10,"index":10},"end":{"line":5,"column":1,"index":57}}, |
| 28 |
"properties": [ |
| 29 |
{ |
| 30 |
"type": "ObjectMethod", |
| 31 |
"start":14,"end":55,"loc":{"start":{"line":2,"column":2,"index":14},"end":{"line":4,"column":3,"index":55}}, |
| 32 |
"method": true, |
| 33 |
"key": { |
| 34 |
"type": "Identifier", |
| 35 |
"start":16,"end":17,"loc":{"start":{"line":2,"column":4,"index":16},"end":{"line":2,"column":5,"index":17},"identifierName":"a"}, |
| 36 |
"name": "a" |
| 37 |
}, |
| 38 |
"computed": false, |
| 39 |
"kind": "method", |
| 40 |
"id": null, |
| 41 |
"generator": true, |
| 42 |
"async": false, |
| 43 |
"params": [ |
| 44 |
{ |
| 45 |
"type": "AssignmentPattern", |
| 46 |
"start":18,"end":30,"loc":{"start":{"line":2,"column":6,"index":18},"end":{"line":2,"column":18,"index":30}}, |
| 47 |
"left": { |
| 48 |
"type": "Identifier", |
| 49 |
"start":18,"end":25,"loc":{"start":{"line":2,"column":6,"index":18},"end":{"line":2,"column":13,"index":25},"identifierName":"options"}, |
| 50 |
"name": "options" |
| 51 |
}, |
| 52 |
"right": { |
| 53 |
"type": "ObjectExpression", |
| 54 |
"start":28,"end":30,"loc":{"start":{"line":2,"column":16,"index":28},"end":{"line":2,"column":18,"index":30}}, |
| 55 |
"properties": [] |
| 56 |
} |
| 57 |
} |
| 58 |
], |
| 59 |
"body": { |
| 60 |
"type": "BlockStatement", |
| 61 |
"start":32,"end":55,"loc":{"start":{"line":2,"column":20,"index":32},"end":{"line":4,"column":3,"index":55}}, |
| 62 |
"body": [], |
| 63 |
"directives": [ |
| 64 |
{ |
| 65 |
"type": "Directive", |
| 66 |
"start":38,"end":51,"loc":{"start":{"line":3,"column":4,"index":38},"end":{"line":3,"column":17,"index":51}}, |
| 67 |
"value": { |
| 68 |
"type": "DirectiveLiteral", |
| 69 |
"start":38,"end":50,"loc":{"start":{"line":3,"column":4,"index":38},"end":{"line":3,"column":16,"index":50}}, |
| 70 |
"extra": { |
| 71 |
"rawValue": "use strict", |
| 72 |
"raw": "\"use strict\"", |
| 73 |
"expressionValue": "use strict" |
| 74 |
}, |
| 75 |
"value": "use strict" |
| 76 |
} |
| 77 |
} |
| 78 |
] |
| 79 |
} |
| 80 |
} |
| 81 |
] |
| 82 |
} |
| 83 |
} |
| 84 |
], |
| 85 |
"kind": "var" |
| 86 |
} |
| 87 |
], |
| 88 |
"directives": [] |
| 89 |
} |
| 90 |
} |