I have some code in a file that is not a class, and I have a function that is working. The function begins like async function parse(config, callback) { However, if I move it inside a class, on the word "async", I get Unexpected token. A constructor, method, accessor, or property was expected.Any obvious reason why this would be?
Submitted September 27, 2020 at 08:41PM by chozang
No comments:
Post a Comment