summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/04_bugs/04_property_set_abort
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/04_property_set_abort
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/04_property_set_abort')
-rw-r--r--tests/custom/04_bugs/04_property_set_abort76
1 files changed, 0 insertions, 76 deletions
diff --git a/tests/custom/04_bugs/04_property_set_abort b/tests/custom/04_bugs/04_property_set_abort
deleted file mode 100644
index 8af477f..0000000
--- a/tests/custom/04_bugs/04_property_set_abort
+++ /dev/null
@@ -1,76 +0,0 @@
-When attempting to set a property on a non-array, non-object value the
-VM aborted due to an assert triggered by libjson-c.
-
--- Testcase --
-{% (null).x = 1 %}
--- End --
-
--- Expect stderr --
-Type error: attempt to set property on null value
-In line 1, byte 15:
-
- `{% (null).x = 1 %}`
- Near here ----^
-
-
--- End --
-
-
--- Testcase --
-{% (1).x = 1 %}
--- End --
-
--- Expect stderr --
-Type error: attempt to set property on integer value
-In line 1, byte 12:
-
- `{% (1).x = 1 %}`
- Near here -^
-
-
--- End --
-
-
--- Testcase --
-{% (1.2).x = 1 %}
--- End --
-
--- Expect stderr --
-Type error: attempt to set property on double value
-In line 1, byte 14:
-
- `{% (1.2).x = 1 %}`
- Near here ---^
-
-
--- End --
-
-
--- Testcase --
-{% (true).x = 1 %}
--- End --
-
--- Expect stderr --
-Type error: attempt to set property on boolean value
-In line 1, byte 15:
-
- `{% (true).x = 1 %}`
- Near here ----^
-
-
--- End --
-
-
--- Testcase --
-{% ("test").x = 1 %}
--- End --
-
--- Expect stderr --
-Type error: attempt to set property on string value
-In line 1, byte 17:
-
- `{% ("test").x = 1 %}`
- Near here ------^
-
-
--- End --