1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

LibJS: Add optional extra strict checks in parse_binding_pattern

This commit is contained in:
davidot 2021-07-29 01:49:25 +02:00 committed by Linus Groh
parent f1f338edcd
commit 179c48e1a4
2 changed files with 40 additions and 11 deletions

View file

@ -42,7 +42,7 @@ public:
template<typename FunctionNodeType>
NonnullRefPtr<FunctionNodeType> parse_function_node(u8 parse_options = FunctionNodeParseOptions::CheckForFunctionAndName);
Vector<FunctionNode::Parameter> parse_formal_parameters(int& function_length, u8 parse_options = 0);
RefPtr<BindingPattern> parse_binding_pattern();
RefPtr<BindingPattern> parse_binding_pattern(bool strict_checks = false);
struct PrimaryExpressionParseResult {
NonnullRefPtr<Expression> result;