diff options
author | davidot <david.tuin@gmail.com> | 2021-07-29 01:49:25 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-08-16 23:20:04 +0100 |
commit | 179c48e1a44a6eda9e409d4087bca265cf28bd42 (patch) | |
tree | 24615f49724cb24eb8cdf7b99f3926f2207daf59 /Userland/Libraries/LibJS/Parser.h | |
parent | f1f338edcdc98b3b8ea8f676b33d701981d6b53e (diff) | |
download | serenity-179c48e1a44a6eda9e409d4087bca265cf28bd42.zip |
LibJS: Add optional extra strict checks in parse_binding_pattern
Diffstat (limited to 'Userland/Libraries/LibJS/Parser.h')
-rw-r--r-- | Userland/Libraries/LibJS/Parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Parser.h b/Userland/Libraries/LibJS/Parser.h index 8157e430a7..97036c8de6 100644 --- a/Userland/Libraries/LibJS/Parser.h +++ b/Userland/Libraries/LibJS/Parser.h @@ -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; |