diff options
Diffstat (limited to 'tests/js')
-rw-r--r-- | tests/js/temptyseq.nim | 2 | ||||
-rw-r--r-- | tests/js/tfieldchecks.nim | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/js/temptyseq.nim b/tests/js/temptyseq.nim index df4b3e8da..6489cf817 100644 --- a/tests/js/temptyseq.nim +++ b/tests/js/temptyseq.nim @@ -2,7 +2,7 @@ proc foo = var x: seq[int] - doAssertRaises(IndexError): + doAssertRaises(IndexDefect): inc x[0] foo() diff --git a/tests/js/tfieldchecks.nim b/tests/js/tfieldchecks.nim index 77759a75a..3916cae74 100644 --- a/tests/js/tfieldchecks.nim +++ b/tests/js/tfieldchecks.nim @@ -24,7 +24,7 @@ var obj = X(f0: "foo", f1: C, f3: 3.14) block: echo obj.f0 echo obj.f1 - doAssertRaises(FieldError): echo obj.f2 + doAssertRaises(FieldDefect): echo obj.f2 echo obj.f3 block: @@ -32,7 +32,7 @@ block: echo a0[] # let a1 = unsafeAddr(obj.f1) # echo a1[] - doAssertRaises(FieldError): + doAssertRaises(FieldDefect): let a2 = addr(obj.f2) echo a2[] let a3 = addr(obj.f3) |