* remove unused opcSubstr * [js] add testcase for array indexDefect * Revert "remove unused opcSubstr" This reverts commit cb461f2545234d62c1e0b83318f3e5495c97de52.
9 lines
No EOL
169 B
Nim
9 lines
No EOL
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 |