We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node.js v14.15.4
repo /~https://github.com/Tarrowren/jackson-js-bug
npm run tsc:dev npm run es-build:dev
es-build throw Class declaration must have a name in this context
at meriyah.parseScript
import { parseScript } from "meriyah"; export const getArgumentNames = (method): string[] => { // ... const ast = parseScript(code, { next: true, webcompat: true, directives: true, }); // ... };
now I use regular expressions solve it
export const getArgumentNames = (method): string[] => { return method .toString() .match(/constructor\(.*\)/)[0] .match(/[^constructor\(].*[^\)]/)[0] .split(", "); };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
jackson-js-bug
Environment
node.js v14.15.4
Description
repo /~https://github.com/Tarrowren/jackson-js-bug
es-build throw Class declaration must have a name in this context
at meriyah.parseScript
now I use regular expressions solve it
The text was updated successfully, but these errors were encountered: