Skip to content

Commit 4fd49da

Browse files
committed
use RE_EXN_ID
1 parent ca0b908 commit 4fd49da

File tree

256 files changed

+4873
-4794
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+4873
-4794
lines changed

jscomp/ext/literals.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ let sourcedirs_meta = ".sourcedirs.json"
139139
*)
140140
let ns_sep_char = '-'
141141
let ns_sep = "-"
142-
let exception_id = "ExceptionID"
142+
let exception_id = "RE_EXN_ID"

jscomp/runtime/caml_exceptions.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *)
2424

2525
type t = {
26-
id : string [@bs.as "ExceptionID"];
26+
id : string [@bs.as "RE_EXN_ID"];
2727

2828
}
2929

jscomp/test/406_primitive_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function f(param) {
2828
for(var i = 0; i <= 200; ++i){
2929
if (i === 10) {
3030
throw {
31-
ExceptionID: A,
31+
RE_EXN_ID: A,
3232
_1: 0
3333
};
3434
}
@@ -38,7 +38,7 @@ function f(param) {
3838
}
3939
catch (raw_exn){
4040
var exn = Caml_js_exceptions.internalToOCamlException(raw_exn);
41-
if (exn.ExceptionID === A) {
41+
if (exn.RE_EXN_ID === A) {
4242
return ;
4343
}
4444
throw exn;

jscomp/test/adt_optimize_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function f11(x) {
157157
return 1;
158158
}
159159
throw {
160-
ExceptionID: "Assert_failure",
160+
RE_EXN_ID: "Assert_failure",
161161
_1: /* tuple */[
162162
"adt_optimize_test.ml",
163163
191,

jscomp/test/app_root_finder.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function find_package_json(_dir) {
1414
var new_dir = Path.dirname(dir);
1515
if (new_dir === dir) {
1616
throw {
17-
ExceptionID: "Not_found"
17+
RE_EXN_ID: "Not_found"
1818
};
1919
}
2020
_dir = new_dir;

jscomp/test/arith_parser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var yynames_block = "NUMERAL\0IDENT\0";
4646
var yyact = [
4747
(function (param) {
4848
throw {
49-
ExceptionID: "Failure",
49+
RE_EXN_ID: "Failure",
5050
_1: "parser"
5151
};
5252
}),
@@ -102,7 +102,7 @@ var yyact = [
102102
}),
103103
(function (__caml_parser_env) {
104104
throw {
105-
ExceptionID: Parsing.YYexit,
105+
RE_EXN_ID: Parsing.YYexit,
106106
_1: Parsing.peek_val(__caml_parser_env, 0)
107107
};
108108
})

jscomp/test/arity_infer.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ function f0(x) {
1010
});
1111
} else {
1212
throw {
13-
ExceptionID: "Not_found"
13+
RE_EXN_ID: "Not_found"
1414
};
1515
}
1616
return tmp(3);
1717
}
1818

1919
function f1(x) {
2020
throw {
21-
ExceptionID: "Not_found"
21+
RE_EXN_ID: "Not_found"
2222
};
2323
return Curry._1(undefined, x);
2424
}
@@ -48,7 +48,7 @@ function f3(x) {
4848
break;
4949
default:
5050
throw {
51-
ExceptionID: "Not_found"
51+
RE_EXN_ID: "Not_found"
5252
};
5353
}
5454
return tmp(3);

jscomp/test/array_safe_get.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ try {
1515
}
1616
catch (raw_msg){
1717
var msg = Caml_js_exceptions.internalToOCamlException(raw_msg);
18-
if (msg.ExceptionID === "Invalid_argument") {
18+
if (msg.RE_EXN_ID === "Invalid_argument") {
1919
console.log(msg._1);
2020
y = 0;
2121
} else {

jscomp/test/array_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function starts_with(xs, prefix, p) {
2222
for(var i = 0; i < len2; ++i){
2323
if (!Curry._2(p, Caml_array.caml_array_get(xs, i), Caml_array.caml_array_get(prefix, i))) {
2424
throw {
25-
ExceptionID: H
25+
RE_EXN_ID: H
2626
};
2727
}
2828

@@ -31,7 +31,7 @@ function starts_with(xs, prefix, p) {
3131
}
3232
catch (raw_exn){
3333
var exn = Caml_js_exceptions.internalToOCamlException(raw_exn);
34-
if (exn.ExceptionID === H) {
34+
if (exn.RE_EXN_ID === H) {
3535
return false;
3636
}
3737
throw exn;

jscomp/test/bb.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function ff(x) {
2323
return /* c */99;
2424
default:
2525
throw {
26-
ExceptionID: "Assert_failure",
26+
RE_EXN_ID: "Assert_failure",
2727
_1: /* tuple */[
2828
"bb.ml",
2929
17,
@@ -47,7 +47,7 @@ function test(x) {
4747
break;
4848
default:
4949
throw {
50-
ExceptionID: "Assert_failure",
50+
RE_EXN_ID: "Assert_failure",
5151
_1: /* tuple */[
5252
"bb.ml",
5353
26,

jscomp/test/bdd.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function resize(newSize) {
6363
var n = bucket[0];
6464
if (typeof n === "number") {
6565
throw {
66-
ExceptionID: "Assert_failure",
66+
RE_EXN_ID: "Assert_failure",
6767
_1: /* tuple */[
6868
"bdd.ml",
6969
54,
@@ -128,7 +128,7 @@ function mkNode(low, v, high) {
128128
var n = b[0];
129129
if (typeof n === "number") {
130130
throw {
131-
ExceptionID: "Assert_failure",
131+
RE_EXN_ID: "Assert_failure",
132132
_1: /* tuple */[
133133
"bdd.ml",
134134
99,
@@ -371,7 +371,7 @@ function main(param) {
371371
return ;
372372
}
373373
throw {
374-
ExceptionID: "Assert_failure",
374+
RE_EXN_ID: "Assert_failure",
375375
_1: /* tuple */[
376376
"bdd.ml",
377377
233,

jscomp/test/bench.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function init(l, f) {
2424
}
2525
if (l < 0) {
2626
throw {
27-
ExceptionID: "Invalid_argument",
27+
RE_EXN_ID: "Invalid_argument",
2828
_1: "Array.init"
2929
};
3030
}

0 commit comments

Comments
 (0)