summaryrefslogtreecommitdiffhomepage
path: root/tests/00_syntax/01_unterminated_comment
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-03-12 13:04:50 +0100
committerJo-Philipp Wich <jo@mein.io>2021-03-12 13:10:08 +0100
commit647c6a7927c5c6ef2941ba1dc3c1d40c2c7d7f34 (patch)
tree7fc91985bb60a9d5bc17d57442e13dd67052031d /tests/00_syntax/01_unterminated_comment
parentf2b6b24975a3e8ad7e8bfb16d2449ba8e3d2536a (diff)
compiler: fix parsing of arrow functions with single expression body
Ensure that an arrow function body expression is parsed with P_ASSIGN precedence to not greedily consume comma expressions. This ensures that an expression like () => 1, 2 is parsed as function [() => 1], integer [2] and not as function [() => 1, 2]. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/00_syntax/01_unterminated_comment')
0 files changed, 0 insertions, 0 deletions