Skip to content

fix(core): stop binding class values in composition scoped window#1060

Merged
miguel-heygen merged 1 commit into
heygen-com:mainfrom
func25:f/preserve-static
May 24, 2026
Merged

fix(core): stop binding class values in composition scoped window#1060
miguel-heygen merged 1 commit into
heygen-com:mainfrom
func25:f/preserve-static

Conversation

@func25
Copy link
Copy Markdown
Contributor

@func25 func25 commented May 24, 2026

What

Preserve static methods on classes exposed through the scoped window inside composition scripts.

Why

Scoped compositions currently bind every callable read from window. That breaks class objects exposed on window, because classes are also callable values in JavaScript. After binding, static members are no longer available on the returned value.

How

Update the scoped window proxy in composition scoping so it returns properties directly instead of auto-binding every callable.

Test plan

How was this tested?

  • Unit tests added/updated
  • Manual testing performed
  • Documentation updated (if applicable)

@miguel-heygen miguel-heygen merged commit 7397702 into heygen-com:main May 24, 2026
45 checks passed
@func25 func25 deleted the f/preserve-static branch May 24, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants