0ed9eb856c
Reviewed-by: darcy, forax, attila, hannesw
258 lines
7.6 KiB
Plaintext
258 lines
7.6 KiB
Plaintext
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "TryStatement",
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"body": []
|
|
},
|
|
"guardedHandlers": [],
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"param": {
|
|
"type": "Identifier",
|
|
"name": "e"
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": []
|
|
}
|
|
},
|
|
"finalizer": null
|
|
}
|
|
]
|
|
}
|
|
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "TryStatement",
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"body": []
|
|
},
|
|
"guardedHandlers": [],
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"param": {
|
|
"type": "Identifier",
|
|
"name": "e"
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": []
|
|
}
|
|
},
|
|
"finalizer": {
|
|
"type": "BlockStatement",
|
|
"body": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "TryStatement",
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"body": []
|
|
},
|
|
"guardedHandlers": [],
|
|
"handler": null,
|
|
"finalizer": {
|
|
"type": "BlockStatement",
|
|
"body": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "TryStatement",
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"body": []
|
|
},
|
|
"guardedHandlers": [],
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"param": {
|
|
"type": "Identifier",
|
|
"name": "e"
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "handle"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"finalizer": null
|
|
}
|
|
]
|
|
}
|
|
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "TryStatement",
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "that"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"guardedHandlers": [],
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"param": {
|
|
"type": "Identifier",
|
|
"name": "e"
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "handle"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"finalizer": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "clean"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
{
|
|
"type": "Program",
|
|
"body": [
|
|
{
|
|
"type": "TryStatement",
|
|
"block": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "that"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"guardedHandlers": [
|
|
{
|
|
"type": "CatchClause",
|
|
"param": {
|
|
"type": "Identifier",
|
|
"name": "e"
|
|
},
|
|
"guard": {
|
|
"type": "BinaryExpression",
|
|
"operator": "instanceof",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"name": "e"
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"name": "TypeError"
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "handle"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"handler": {
|
|
"type": "CatchClause",
|
|
"param": {
|
|
"type": "Identifier",
|
|
"name": "e"
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"name": "rest"
|
|
},
|
|
"arguments": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"finalizer": null
|
|
}
|
|
]
|
|
}
|