Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions packages/core/src/render-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,20 @@ export function render(value, container) {
firstChild.remove();
}

if (__D) {
// TEMP #730: capture the exact throw + stack frame for the probe.
try {
const inst = createInstance(tr, container);
host[INSTANCE] = inst;
__D.push('createInstance OK');
} catch (e) {
__D.push('THREW msg=' + (e && /** @type any */ (e).message));
__D.push('stack=' + (e && /** @type any */ (e).stack ? String(/** @type any */ (e).stack).split('\n').slice(0, 5).join(' || ') : 'none'));
throw e;
}
return;
}

const inst = createInstance(tr, container);
host[INSTANCE] = inst;
return;
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/packages/website/app/diag/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function Diag() {
return html`
${unsafeHTML(EARLY)}
<main style="padding:1rem;font-family:system-ui;max-width:100%">
<h1 style="font-size:1.1rem">webjs Tier-2 iOS diagnostic v11 (#730)</h1>
<h1 style="font-size:1.1rem">webjs Tier-2 iOS diagnostic v12 (#730)</h1>
<p style="font-size:.85rem;color:#666">Wait about 2s, then copy the whole readout and send it to me. The page stays scrollable.</p>
<button onclick="location.reload()" style="margin-bottom:.75rem" class=${buttonClass({ variant: 'outline', size: 'sm' })}>Re-run</button>
<pre id="wjdiag" style="white-space:pre-wrap;word-break:break-word;font:12px/1.5 monospace;background:#f4f4f5;color:#111;padding:1rem;border-radius:8px;border:1px solid #ccc">collecting (wait about 2s)...</pre>
Expand Down
Loading