blob: 5cd8960372d592cfe59197dad7947ee98fbdce26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Arrow functions with single expression bodies were parsed with a wrong
precedence level, causing comma expressions to be greedily consumed.
-- Testcase --
{%
print({
a: () => 1,
b: () => 2
}, "\n");
%}
-- End --
-- Expect stdout --
{ "a": "() => { ... }", "b": "() => { ... }" }
-- End --
|