esdoc / esdoc-plugins

MIT License
140 stars 77 forks source link

[esdoc-ecmascript-proposal-plugin] Optional catch binding not supported #86

Open cedx opened 5 years ago

cedx commented 5 years ago
"esdoc": "^1.1.0",
"esdoc-ecmascript-proposal-plugin": "^1.0.0",
"esdoc-standard-plugin": "^1.0.0"

I get the following error : warning: could not parse the following code

When the parser encounter an optional catch binding:

try {
  const fileStats = await promises.stat(file);
  if (!fileStats.isFile()) return false;
  return Finder.isWindows ? this._checkFileExtension(file) : this._checkFilePermissions(fileStats);
}

catch { // <= optional catch binding
  return false;
}

In the generated documentation, the whole file is skipped.

cedx commented 4 years ago

I close this issue because we have just exceeded one year of seniority 😴

fab1o commented 2 years ago

@cedx I'm having this issue as well, it's failing my build process. Can we reopen this and get this fixed please?

cedx commented 2 years ago

@fab1o Sure... but I think @h13i32maru has moved on: he doesn't seem to maintain this project anymore. We can't blame him: I have myself moved on (I replaced JavaScript by the Haxe language on all my projects 😄).

fab1o commented 2 years ago

@cedx Thanks! I started it but I think I'm missing something cos npm test is not passing, could you take a look? https://github.com/esdoc/esdoc-plugins/pull/101

@h13i32maru I'm not sure I understand how the mechanics are, how does it include/use the babel plugins