Skip to content
Snippets Groups Projects
Commit 5962fa52 authored by Serge S. Gulin's avatar Serge S. Gulin :construction_worker:
Browse files

JS: Stubs for code without actual implementation detected by Google Closure Compiler (fixes #24602)

These errors were fixed just by introducing stubbed functions with throw for further implementation.
parent ad90bf12
No related branches found
No related tags found
No related merge requests found
......@@ -1077,3 +1077,12 @@ function h$mkdir(path, path_offset, mode) {
}
return 0;
}
// It is required by Google Closure Compiler to be at least defined if
// somewhere it is used
var h$stg_cloneMyStackzh, h$stg_decodeStackzh
h$stg_cloneMyStackzh
= h$stg_decodeStackzh
= function () {
throw new Error('Stack Cloning Decoding: Not Implemented Yet')
}
......@@ -441,9 +441,7 @@ function h$throw(e, async) {
if(async) { // async exceptions always propagate
h$currentThread.transaction = null;
} else if(!h$stmValidateTransaction()) { // restart transaction if invalid, don't propagate exception
h$sp++;
h$stack[h$sp] = h$checkInvariants_e;
return h$stmStartTransaction(h$stack[h$sp-1]);
return h$stmStartTransaction(h$stack[h$sp]);
}
}
if(f === h$catchStm_e && !async) break; // catchSTM only catches sync
......@@ -723,3 +721,24 @@ function h$keepAlive(x, f) {
h$r1 = f;
return h$ap_1_0_fast();
}
// It is required by Google Closure Compiler to be at least defined if
// somewhere it is used
var h$libdwLookupLocation, h$libdwPoolRelease, h$libdwPoolTake,
h$libdwGetBacktrace, h$backtraceFree
h$libdwLookupLocation
= h$libdwPoolRelease
= h$libdwPoolTake
= h$libdwGetBacktrace
= h$backtraceFree
= function() {
throw new Error('Libdw: Not Implemented Yet')
}
// It is required by Google Closure Compiler to be at least defined if
// somewhere it is used
var h$lookupIPE
h$lookupIPE
= function () {
throw new Error('IPE: Not Implemented Yet')
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment