/**
An async function defined
@param foo {string} foo is good than bar
@return bar {string} bar getting angry
*/
async function Named(foo) {
let bar = await getBar()
return bar
}
ERROR: Unable to parse /Users/pleasurazy/git/jsdoc-trial/jsdoc.js: Line 6: Unexpected token function
[SyntaxError: Unexpected end of input [Problem parsing the JSON data output by jsdoc, input data: ]]
OK
/**
An async function defined
@param foo {string} foo is good than bar
@return bar {string} bar getting angry
*/
function Named(foo) {
let bar = getBar()
return bar
}
jsdoc-parse uses jsdoc3 under the hood.. jsdoc-parse supports whichever features of ES6 and ES7 that jsdoc3 supports, you can find more information here
I am using a compiler for ES7 by babel.js
ERROR
OK