Skip to content

fix: make JSVMError an Error and stop retaining Fiber on timeout - #4

Merged
ximing merged 1 commit into
masterfrom
feat/jsvm-error-types
Aug 16, 2026
Merged

ximing merged 1 commit into
masterfrom
feat/jsvm-error-types

Conversation

@ximing

@ximing ximing commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • JSVMError / JSVMTimeoutError now extends Error so RN/APM instanceof Error works
  • Timeout errors no longer retain the Fiber (no realm/host leak on serialize)
  • Runtime re-exports the execution error classes
  • Tests for Path A module.exports, format 1, stock Map, resume-after-timeout

Test plan

  • npx jest (cloud-embed + full suite)
  • npm run typecheck
  • dist/runtime timeout error is Error without fiber

Cloud/RN hosts report with instanceof Error and serialize thrown
values. JSVMError now extends Error; JSVMTimeoutError no longer
holds the Fiber (realm/host leak). Runtime re-exports the error
classes. Tests cover Path A module.exports, format 1, stock host
Map, and resume-after-timeout.
@ximing
ximing merged commit 267bbb3 into master Aug 16, 2026
1 check passed
@ximing
ximing deleted the feat/jsvm-error-types branch August 16, 2026 13:22
ximing added a commit that referenced this pull request Aug 20, 2026
fix: make JSVMError an Error and stop retaining Fiber on timeout
ximing added a commit that referenced this pull request Aug 25, 2026
fix: make JSVMError an Error and stop retaining Fiber on timeout
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.

1 participant