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 committed 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
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
@@ -0,0 +1,6 @@
export default {
"index": 39,
"lineNumber": 3,
"column": 16,
"message": "Private field '#b' must be declared in an enclosing class"
};
@@ -0,0 +1,5 @@
class C {
fn(obj) {
return #b in obj
}
}
@@ -0,0 +1,6 @@
export default {
"index": 27,
"lineNumber": 2,
"column": 12,
"message": "Unexpected token #a"
};
@@ -0,0 +1,3 @@
function a () {
return #a in obj
}

0 comments on commit 6839389

Please sign in to comment.