LibJS: Make JS parser emit accurate this insights for constructors

This way we don't have to handle it when instantiating the constructor.
This commit is contained in:
Andreas Kling 2025-04-07 21:04:45 +02:00 committed by Andreas Kling
commit ef4e7b7945
Notes: github-actions[bot] 2025-04-08 16:54:10 +00:00
3 changed files with 14 additions and 6 deletions

View file

@ -39,6 +39,7 @@ struct FunctionNodeParseOptions {
IsGeneratorFunction = 1 << 6,
IsAsyncFunction = 1 << 7,
HasDefaultExportName = 1 << 8,
IsConstructor = 1 << 9,
};
};