mirror of
https://github.com/webodf/WebODF.git
synced 2026-12-01 16:56:05 +01:00
Merge commit '95ef3267bb90c7322dec41e1dd23d6ae4fa8ffda' into collaborate
This commit is contained in:
@@ -466,10 +466,11 @@ function BrowserRuntime(logoutput) {
|
||||
*/
|
||||
function assert(condition, message, callback) {
|
||||
if (!condition) {
|
||||
log("alert", "ASSERTION FAILED:\n"+message);
|
||||
log("alert", "ASSERTION FAILED:\n" + message);
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
throw message; // interrupt execution and provide a backtrace
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user