summary refs log blame commit diff stats
path: root/tests/js/tunittest_error2.nim
blob: 273e39d9d4b79cda640c87618910023a13c76e73 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                    
discard """
  exitcode: 1
  outputsub: '''
Unhandled exception: Cannot read property 'charCodeAt' of null [<foreign exception>]
[FAILED] Bad test
  '''
  matrix: "-d:nodejs"
  targets: "js"
  joinable: false
"""

# bug #16978
import unittest
test "Bad test":
  var x: cstring = nil
  let y = x[0]