summary refs log tree commit diff stats
path: root/tests/js/t8914.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/t8914.nim')
-rw-r--r--tests/js/t8914.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/js/t8914.nim b/tests/js/t8914.nim
new file mode 100644
index 000000000..ff716b42a
--- /dev/null
+++ b/tests/js/t8914.nim
@@ -0,0 +1,12 @@
+discard """
+  output: '''
+@[42]
+@[24, 42]
+'''
+"""
+
+var x = @[42,4242]
+x.delete(1)
+echo x
+x.insert(24)
+echo x