* Create parser plugin "topLevelAwait" * Update test262 whitelist * Update ts typings * Fix "sourceType: unambiguous" with TLA * Ambiguous tokens after await * Update await %x(0) * typo [skip ci] * Typo [skip ci] Co-Authored-By: Brian Ng <bng412@gmail.com>
388 lines
8.1 KiB
JSON
388 lines
8.1 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 65,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 12
|
|
}
|
|
},
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 65,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 12
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 0,
|
|
"end": 7,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 7
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AwaitExpression",
|
|
"start": 0,
|
|
"end": 7,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 7
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"start": 6,
|
|
"end": 7,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 7
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 9,
|
|
"end": 18,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 9
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AwaitExpression",
|
|
"start": 9,
|
|
"end": 18,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 9
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "UnaryExpression",
|
|
"start": 15,
|
|
"end": 18,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 9
|
|
}
|
|
},
|
|
"operator": "+",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"start": 17,
|
|
"end": 18,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 9
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 19,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 9
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AwaitExpression",
|
|
"start": 19,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 9
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "UnaryExpression",
|
|
"start": 25,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 9
|
|
}
|
|
},
|
|
"operator": "-",
|
|
"prefix": true,
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"start": 27,
|
|
"end": 28,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 9
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 29,
|
|
"end": 40,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 11
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AwaitExpression",
|
|
"start": 29,
|
|
"end": 40,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 11
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "NumericLiteral",
|
|
"start": 37,
|
|
"end": 38,
|
|
"loc": {
|
|
"start": {
|
|
"line": 5,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 5,
|
|
"column": 9
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0",
|
|
"parenthesized": true,
|
|
"parenStart": 35
|
|
},
|
|
"value": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 41,
|
|
"end": 52,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 11
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AwaitExpression",
|
|
"start": 41,
|
|
"end": 52,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 11
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "ArrayExpression",
|
|
"start": 47,
|
|
"end": 52,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 11
|
|
}
|
|
},
|
|
"elements": [
|
|
{
|
|
"type": "NumericLiteral",
|
|
"start": 49,
|
|
"end": 50,
|
|
"loc": {
|
|
"start": {
|
|
"line": 6,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 6,
|
|
"column": 9
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": 0,
|
|
"raw": "0"
|
|
},
|
|
"value": 0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start": 53,
|
|
"end": 65,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 12
|
|
}
|
|
},
|
|
"expression": {
|
|
"type": "AwaitExpression",
|
|
"start": 53,
|
|
"end": 65,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 12
|
|
}
|
|
},
|
|
"argument": {
|
|
"type": "RegExpLiteral",
|
|
"start": 59,
|
|
"end": 65,
|
|
"loc": {
|
|
"start": {
|
|
"line": 7,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 7,
|
|
"column": 12
|
|
}
|
|
},
|
|
"extra": {
|
|
"raw": "/ 0 /u"
|
|
},
|
|
"pattern": " 0 ",
|
|
"flags": "u"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |