summary refs log tree commit diff stats
path: root/tests/js
diff options
context:
space:
mode:
authorLemonBoy <LemonBoy@users.noreply.github.com>2018-09-08 10:38:18 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-09-08 10:38:18 +0200
commit3f16711254bffaa48dcb9ef0ac1cabc2fad7c5d7 (patch)
tree666adbb1f654b4f4cf2a313822d76235c1d5cdec /tests/js
parent91b37311d9974ae30745946a52c9a971da1616f4 (diff)
downloadNim-3f16711254bffaa48dcb9ef0ac1cabc2fad7c5d7.tar.gz
Fix insert/delete for JS (#8915)
Fixes #8914
Diffstat (limited to 'tests/js')
-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