Commit e511b64
fix(rsg): repair the release build broken by the findNode global check (#1099)
`sgRoot.mGlobal !== this` fails to compile: mGlobal is a `Global`, which
TypeScript sees as having no overlap with the polymorphic `this`, so
`tsc`/ts-loader raise TS2367 and the brs-scenegraph build fails.
Widen to RoSGNode before comparing, the same way the earlier global-node
check did.
Only a clean build surfaces it — an incremental rebuild reuses the cached
module and reports success, which is how it reached master.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent afc80d3 commit e511b64
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1805 | 1805 | | |
1806 | 1806 | | |
1807 | 1807 | | |
1808 | | - | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
1809 | 1812 | | |
1810 | 1813 | | |
1811 | 1814 | | |
| |||
0 commit comments