window.crashReport.initialize(1024).then(() => {
init();
});CrashReportContext / notebook
CrashReportContext
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const arg1 = "a";
const arg2 = "b";
window.crashReport.set("complex-operation-input", `${arg1}_${arg2}`);
complexOperationThatMightCrash(arg1, arg2);
window.crashReport.delete("complex-operation-input");async function fetchURL(url) {
const prefix = `[top-level=${self === window.top}]`;
window.crashReport.set(`${prefix}-fetching`, url);
const response = await fetch(url);
window.crashReport.delete(`${prefix}-fetching`, url);
}