time-to-botec/squiggle/node_modules/@rescript/std/lib/es6/caml_exceptions.js
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

32 lines
395 B
JavaScript

var id = {
contents: 0
};
function create(str) {
id.contents = id.contents + 1 | 0;
return str + ("/" + id.contents);
}
function is_extension(e) {
if (e == null) {
return false;
} else {
return typeof e.RE_EXN_ID === "string";
}
}
function exn_slot_name(x) {
return x.RE_EXN_ID;
}
export {
id ,
create ,
is_extension ,
exn_slot_name ,
}
/* No side effect */