summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/04_bugs/08_compiler_arrow_fn_expressions
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-07-17 23:21:03 +0200
committerJo-Philipp Wich <jo@mein.io>2022-07-30 13:46:23 +0200
commit10e056d3744384a029f05de5903c489898722fc3 (patch)
treee6621194f1053fdc314dfee02358972028a6a5ff /tests/custom/04_bugs/08_compiler_arrow_fn_expressions
parent862e49de33bd07daea129d553968579019c79b59 (diff)
compiler: add support for import/export statements
This commit introduces syntax level support for ES6 style module import and export statements. Imports are resolved at compile time and the corresponding module code is compiled into the main program. Also add testcases to cover import and export statement semantics. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/custom/04_bugs/08_compiler_arrow_fn_expressions')
-rw-r--r--tests/custom/04_bugs/08_compiler_arrow_fn_expressions15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/custom/04_bugs/08_compiler_arrow_fn_expressions b/tests/custom/04_bugs/08_compiler_arrow_fn_expressions
deleted file mode 100644
index 5cd8960..0000000
--- a/tests/custom/04_bugs/08_compiler_arrow_fn_expressions
+++ /dev/null
@@ -1,15 +0,0 @@
-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 --