Fix insert/delete for JS (#8915)

Fixes #8914
This commit is contained in:
LemonBoy 2018-09-08 10:38:18 +02:00 • committed by Andreas Rumpf
commit 3f16711254
2 changed files with 14 additions and 2 deletions

12
tests/js/t8914.nim Normal file
View file

@ -0,0 +1,12 @@
discard """
output: '''
@[42]
@[24, 42]
'''
"""
var x = @[42,4242]
x.delete(1)
echo x
x.insert(24)
echo x