Throw a syntax error for a parameter properties in not constructor (#12061)

This commit is contained in:
Sosuke Suzuki
2020-09-15 06:28:06 +09:00
committed by GitHub
parent c8f0b6dc1e
commit bbe0cf09fc
6 changed files with 391 additions and 2 deletions

View File

@@ -1083,7 +1083,7 @@ export default class StatementParser extends ExpressionParser {
node.id = this.parseFunctionId();
}
this.parseFunctionParams(node);
this.parseFunctionParams(node, /* allowModifiers */ false);
// For the smartPipelines plugin: Disable topic references from outer
// contexts within the function body. They are permitted in function