Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 5d4ccc5

Browse files
committed
[interpreter] rename AssertUncaughtException -> AssertException
1 parent ad0da92 commit 5d4ccc5

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

interpreter/script/js.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ let of_assertion mods ass =
513513
of_assertion' mods act "assert_trap" [] None
514514
| AssertExhaustion (act, _) ->
515515
of_assertion' mods act "assert_exhaustion" [] None
516-
| AssertUncaughtException act ->
516+
| AssertException act ->
517517
of_assertion' mods act "assert_exception" [] None
518518

519519
let of_command mods cmd =

interpreter/script/run.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ let run_assertion ass =
459459
| _ -> Assert.error ass.at "expected runtime error"
460460
)
461461

462-
| AssertUncaughtException act ->
462+
| AssertException act ->
463463
trace ("Asserting exception...");
464464
(match run_action act with
465465
| exception Eval.Exception (_, msg) -> ()

interpreter/script/script.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ and assertion' =
3232
| AssertUninstantiable of definition * string
3333
| AssertReturn of action * result list
3434
| AssertTrap of action * string
35-
| AssertUncaughtException of action
35+
| AssertException of action
3636
| AssertExhaustion of action * string
3737

3838
type command = command' Source.phrase

interpreter/text/arrange.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ let assertion mode ass =
550550
[Node ("assert_return", action mode act :: List.map (result mode) results)]
551551
| AssertTrap (act, re) ->
552552
[Node ("assert_trap", [action mode act; Atom (string re)])]
553-
| AssertUncaughtException act ->
553+
| AssertException act ->
554554
[Node ("assert_exception", [action mode act])]
555555
| AssertExhaustion (act, re) ->
556556
[Node ("assert_exhaustion", [action mode act; Atom (string re)])]

interpreter/text/parser.mly

+1-1
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ assertion :
11691169
| LPAR ASSERT_RETURN action result_list RPAR { AssertReturn ($3, $4) @@ at () }
11701170
| LPAR ASSERT_TRAP action STRING RPAR { AssertTrap ($3, $4) @@ at () }
11711171
| LPAR ASSERT_EXCEPTION action RPAR
1172-
{ AssertUncaughtException $3 @@ at () }
1172+
{ AssertException $3 @@ at () }
11731173
| LPAR ASSERT_EXHAUSTION action STRING RPAR { AssertExhaustion ($3, $4) @@ at () }
11741174

11751175
cmd :

0 commit comments

Comments
 (0)