From 51116a06a01ceb48dabc8a4955f9f7157aaa31a3 Mon Sep 17 00:00:00 2001 From: t Date: Mon, 29 Jun 2026 11:19:14 +0530 Subject: [PATCH] chore: diag v12 - try/catch createInstance to surface the iOS throw (#730) (TEMP) v11 showed compile()/createInstance throws before any internal log on iOS. v12 wraps the createInstance call in render() with try/catch and logs the error message + stack frames, pinning the exact failing line. Gated; reverted after. --- packages/core/src/render-client.js | 14 ++++++++++++++ packages/ui/packages/website/app/diag/page.ts | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/core/src/render-client.js b/packages/core/src/render-client.js index 5c87edd8e..c4d899b60 100644 --- a/packages/core/src/render-client.js +++ b/packages/core/src/render-client.js @@ -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; diff --git a/packages/ui/packages/website/app/diag/page.ts b/packages/ui/packages/website/app/diag/page.ts index b7711ceb3..50f30daa6 100644 --- a/packages/ui/packages/website/app/diag/page.ts +++ b/packages/ui/packages/website/app/diag/page.ts @@ -57,7 +57,7 @@ export default function Diag() { return html` ${unsafeHTML(EARLY)}
-

webjs Tier-2 iOS diagnostic v11 (#730)

+

webjs Tier-2 iOS diagnostic v12 (#730)

Wait about 2s, then copy the whole readout and send it to me. The page stays scrollable.

collecting (wait about 2s)...