summaryrefslogtreecommitdiffhomepage
path: root/tests/custom
diff options
context:
space:
mode:
Diffstat (limited to 'tests/custom')
-rw-r--r--tests/custom/00_syntax/13_object_literals16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/custom/00_syntax/13_object_literals b/tests/custom/00_syntax/13_object_literals
index 18fbbed..5ceab43 100644
--- a/tests/custom/00_syntax/13_object_literals
+++ b/tests/custom/00_syntax/13_object_literals
@@ -128,6 +128,22 @@ In line 2, byte 14:
%}
-- End --
+-- Expect stderr --
+Syntax error: Invalid identifier
+In line 2, byte 8:
+
+ ` o = { function };`
+ ^-- Near here
+
+
+-- End --
+
+-- Testcase --
+{%
+ o = { function };
+%}
+-- End --
+
ES2015 computed property names are supported.