diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2018-09-08 10:38:18 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-09-08 10:38:18 +0200 |
commit | 3f16711254bffaa48dcb9ef0ac1cabc2fad7c5d7 (patch) | |
tree | 666adbb1f654b4f4cf2a313822d76235c1d5cdec /tests/js | |
parent | 91b37311d9974ae30745946a52c9a971da1616f4 (diff) | |
download | Nim-3f16711254bffaa48dcb9ef0ac1cabc2fad7c5d7.tar.gz |
Fix insert/delete for JS (#8915)
Fixes #8914
Diffstat (limited to 'tests/js')
-rw-r--r-- | tests/js/t8914.nim | 12 |
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 |