Skip to content

Commit

Permalink
feat: support for private-in syntax (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi authored Nov 18, 2021
1 parent fe07aae commit 6839389
Show file tree
Hide file tree
Showing 7 changed files with 581 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"license": "BSD-2-Clause",
"dependencies": {
"acorn": "^8.5.0",
"acorn": "^8.6.0",
"acorn-jsx": "^5.3.1",
"eslint-visitor-keys": "^3.1.0"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
"index": 39,
"lineNumber": 3,
"column": 16,
"message": "Private field '#b' must be declared in an enclosing class"
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class C {
fn(obj) {
return #b in obj
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
"index": 27,
"lineNumber": 2,
"column": 12,
"message": "Unexpected token #a"
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function a () {
return #a in obj
}
Loading

0 comments on commit 6839389

Please sign in to comment.