Files
Nim/tests/js/tindexdefect.nim
flywind 1e5dd9022b [js] add testcase for array indexDefect and remove todo (#19838)
* remove unused opcSubstr

* [js] add testcase for array indexDefect

* Revert "remove unused opcSubstr"

This reverts commit cb461f2545.
2022-06-10 20:33:44 +02:00

9 lines
169 B
Nim

discard """
outputsub: "unhandled exception: index 10000 not in 0 .. 0 [IndexDefect]"
exitcode: 1
joinable: false
"""
var s = ['a']
let z = s[10000] == 'a'
echo z