esdoc / esdoc-plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

cedx opened this issue · comments

"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.

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

commented

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

@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 😄).

commented

@cedx Thanks! I started it but I think I'm missing something cos npm test is not passing, could you take a look? #101

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