summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/WeakMap.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-01-15 17:10:20 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-16 01:54:48 +0100
commitf0b2179bd79c4cd952ccad81e571307a6606b84e (patch)
tree34710602a459e79d85dc529d510d72da388b016f /Userland/Libraries/LibJS/Runtime/WeakMap.cpp
parente730ada07d6b68fdc4e76f1e9028a06f0c8f3c40 (diff)
downloadserenity-f0b2179bd79c4cd952ccad81e571307a6606b84e.zip
LibJS: Don't require ParenClose in Parser::parse_formal_parameters()
The parentheses are dealt with outside this function, so we shouldn't use the (non)existence of one as the condition for consuming another comma and then parameter. Just check for a comma instead. This becomes relevant when parsing standalone function parameters as per the spec in the CreateDynamicFunction AO.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/WeakMap.cpp')
0 files changed, 0 insertions, 0 deletions