Skip to content

Commit

Permalink
test: add case with undefined refExpressionErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Nov 17, 2021
1 parent 6831dcd commit b1aa55a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
@@ -0,0 +1 @@
#{ #x: x }
@@ -0,0 +1,6 @@
{
"plugins": [
["recordAndTuple", { "syntaxType": "hash" }],
"destructuringPrivate"
]
}
@@ -0,0 +1,46 @@
{
"type": "File",
"start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}},
"errors": [
"SyntaxError: Unexpected private name. (1:3)"
],
"program": {
"type": "Program",
"start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}},
"expression": {
"type": "RecordExpression",
"start":0,"end":10,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":10}},
"properties": [
{
"type": "ObjectProperty",
"start":3,"end":8,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":8}},
"method": false,
"key": {
"type": "PrivateName",
"start":3,"end":5,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":5}},
"id": {
"type": "Identifier",
"start":4,"end":5,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":5},"identifierName":"x"},
"name": "x"
}
},
"shorthand": false,
"value": {
"type": "Identifier",
"start":7,"end":8,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":8},"identifierName":"x"},
"name": "x"
}
}
]
}
}
],
"directives": []
}
}

0 comments on commit b1aa55a

Please sign in to comment.