forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path406_primitive_test.js
62 lines (49 loc) · 1.25 KB
/
406_primitive_test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
'use strict';
var Mt = require("./mt.js");
var Caml_exceptions = require("../../lib/js/caml_exceptions.js");
var Caml_js_exceptions = require("../../lib/js/caml_js_exceptions.js");
var suites = {
contents: /* [] */0
};
var test_id = {
contents: 0
};
function eq(loc, x, y) {
return Mt.eq_suites(test_id, suites, loc, x, y);
}
var v = 32;
eq("File \"406_primitive_test.ml\", line 18, characters 6-13", v, 32);
var backend_type = /* Other */["BS"];
var max_array_length = 2147483647;
eq("File \"406_primitive_test.ml\", line 29, characters 6-13", backend_type, /* Other */["BS"]);
function f(param) {
var A = Caml_exceptions.create("A");
try {
for(var i = 0; i <= 200; ++i){
if (i === 10) {
throw [
A,
0
];
}
}
return /* () */0;
}
catch (raw_exn){
var exn = Caml_js_exceptions.internalToOCamlException(raw_exn);
if (exn[0] === A) {
return /* () */0;
} else {
throw exn;
}
}
}
Mt.from_pair_suites("406_primitive_test", suites.contents);
exports.suites = suites;
exports.test_id = test_id;
exports.eq = eq;
exports.v = v;
exports.backend_type = backend_type;
exports.max_array_length = max_array_length;
exports.f = f;
/* Not a pure module */