Files
hyperframes/packages
Miguel Ángel 2d7b9e5245 fix(core): guard timeline method calls for non-conformant objects (#1098)
* fix(core): guard timeline method calls for non-conformant objects

User compositions can register timeline-like objects on window.__timeline
where .duration is a number property (not a function) and .pause/.play
may be missing entirely. The runtime player called these unconditionally,
causing ~166 "duration is not a function" and ~38 "pause is not a function"
errors per day.

Add safeNum() and safeVoid() helpers that check typeof before calling,
falling back to reading numbers as properties and silently skipping
missing void methods. Applied consistently across all timeline method
call sites in player.ts.

* fix(core): add observability for non-conformant timeline properties
2026-05-27 20:16:38 -04:00
..
2026-05-27 12:15:38 -04:00
2026-05-27 12:15:38 -04:00
2026-05-27 12:15:38 -04:00
2026-05-27 12:15:38 -04:00
2026-05-27 12:15:38 -04:00
2026-05-27 12:15:38 -04:00
2026-05-27 12:15:38 -04:00