Skip to content

Commit 8086089

Browse files
committed
Runtime: for 4.04
1 parent eadb73a commit 8086089

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

runtime/stdlib.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,8 @@ function caml_get_public_method (obj, tag, cacheid) {
10081008

10091009
//Provides: caml_final_register const
10101010
function caml_final_register () { return 0; }
1011+
//Provides: caml_final_register_called_without_value const
1012+
function caml_final_register_called_without_value () { return 0; }
10111013
//Provides: caml_final_release const
10121014
function caml_final_release () { return 0; }
10131015
//Provides: caml_backtrace_status const
@@ -1020,6 +1022,15 @@ function caml_get_exception_raw_backtrace () { return [0]; }
10201022
function caml_record_backtrace () { return 0; }
10211023
//Provides: caml_convert_raw_backtrace const
10221024
function caml_convert_raw_backtrace () { return 0; }
1025+
//Provides: caml_raw_backtrace_length
1026+
function caml_raw_backtrace_length() { return 0; }
1027+
//Provides: caml_raw_backtrace_next_slot
1028+
function caml_raw_backtrace_next_slot() { return 0 }
1029+
//Provides: caml_raw_backtrace_slot
1030+
//Requires: caml_invalid_argument
1031+
function caml_raw_backtrace_slot () {
1032+
caml_invalid_argument("Printexc.get_raw_backtrace_slot: index out of bounds");
1033+
}
10231034
//Provides: caml_get_current_callstack const
10241035
function caml_get_current_callstack () { return [0]; }
10251036
//Provides: caml_sys_getenv (const)
@@ -1155,3 +1166,19 @@ function caml_ml_runtime_warnings_enabled (_unit) {
11551166
function caml_sys_isatty(_chan) {
11561167
return 0;
11571168
}
1169+
1170+
//Provides: caml_spacetime_enabled const (const)
1171+
function caml_spacetime_enabled(_unit) {
1172+
return 0;
1173+
}
1174+
1175+
//Provides: caml_register_channel_for_spacetime const (const)
1176+
function caml_register_channel_for_spacetime(_channel) {
1177+
return 0;
1178+
}
1179+
1180+
//Provides: caml_spacetime_only_works_for_native_code
1181+
//Requires: caml_failwith
1182+
function caml_spacetime_only_works_for_native_code() {
1183+
caml_failwith("Spacetime profiling only works for native code");
1184+
}

0 commit comments

Comments
 (0)