add esprima tests and fix bugs picked up by it

This commit is contained in:
Sebastian McKenzie
2015-08-11 00:59:15 +01:00
parent c318c88050
commit df021c7f23
2091 changed files with 82939 additions and 111 deletions

View File

@@ -0,0 +1 @@
var private, protected, public, static

View File

@@ -0,0 +1,179 @@
{
"type": "File",
"start": 0,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 38
}
},
"program": {
"type": "Program",
"start": 0,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 38
}
},
"sourceType": "script",
"body": [
{
"type": "VariableDeclaration",
"start": 0,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 38
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4,
"end": 11,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 11
}
},
"id": {
"type": "Identifier",
"start": 4,
"end": 11,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 11
}
},
"name": "private"
},
"init": null
},
{
"type": "VariableDeclarator",
"start": 13,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 22
}
},
"id": {
"type": "Identifier",
"start": 13,
"end": 22,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 22
}
},
"name": "protected"
},
"init": null
},
{
"type": "VariableDeclarator",
"start": 24,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 30
}
},
"id": {
"type": "Identifier",
"start": 24,
"end": 30,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 30
}
},
"name": "public"
},
"init": null
},
{
"type": "VariableDeclarator",
"start": 32,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 32
},
"end": {
"line": 1,
"column": 38
}
},
"id": {
"type": "Identifier",
"start": 32,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 32
},
"end": {
"line": 1,
"column": 38
}
},
"name": "static"
},
"init": null
}
],
"kind": "var"
}
]
}
}