• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/ucode/tests/custom/99_bugs/08_compiler_arrow_fn_expressions

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

This page was automatically generated by LXR 0.3.1.  •  OpenWrt