File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -334,6 +334,8 @@ js_obj_test.cmj : mt.cmi
334
334
js_obj_test.cmx : mt.cmx
335
335
js_val.cmj :
336
336
js_val.cmx :
337
+ jsoo_400_test.cmj : ../stdlib/string.cmi
338
+ jsoo_400_test.cmx : ../stdlib/string.cmx
337
339
jsoo_485.cmj :
338
340
jsoo_485.cmx :
339
341
jsoo_485_test.cmj :
@@ -1090,6 +1092,8 @@ js_obj_test.cmo : mt.cmi
1090
1092
js_obj_test.cmj : mt.cmj
1091
1093
js_val.cmo :
1092
1094
js_val.cmj :
1095
+ jsoo_400_test.cmo : ../stdlib/string.cmi
1096
+ jsoo_400_test.cmj : ../stdlib/string.cmj
1093
1097
jsoo_485.cmo :
1094
1098
jsoo_485.cmj :
1095
1099
jsoo_485_test.cmo :
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ OTHERS := a test_ari test_export2 test_internalOO test_obj_simple_ffi test_scope
59
59
optional_ffi_test poly_variant_test \
60
60
bs_rest_test infer_type_test fs_test module_as_function\
61
61
test_case_set test_mutliple string_bound_get_test inline_string_test\
62
- ppx_this_obj_test unsafe_obj_external gpr_627_test jsoo_485_test
62
+ ppx_this_obj_test unsafe_obj_external gpr_627_test jsoo_485_test jsoo_400_test
63
63
64
64
65
65
SOURCE_LIST := js_dyn $(OTHERS )
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ var Caml_int32 = require ( "../../lib/js/caml_int32" ) ;
4
+
5
+ function u ( ) {
6
+ var exit = 0 ;
7
+ var n ;
8
+ try {
9
+ n = 3 ;
10
+ exit = 1 ;
11
+ }
12
+ catch ( exn ) {
13
+ return 42 ;
14
+ }
15
+ if ( exit === 1 ) {
16
+ return Caml_int32 . div ( 3 , 0 ) ;
17
+ }
18
+
19
+ }
20
+
21
+ exports . u = u ;
22
+ /* No side effect */
Original file line number Diff line number Diff line change
1
+ let u () =
2
+ match String. length " 123" with
3
+ | n -> 3 / 0
4
+ | exception _ -> 42
You can’t perform that action at this time.
0 commit comments