Skip to content

fix(rust): save std.crypto in snapshots; root std.crypto and std.bigint - #196

Merged
kommander merged 1 commit into
devfrom
fix/snapshot-std-crypto
Dec 2, 2026
Merged

kommander merged 1 commit into
devfrom
fix/snapshot-std-crypto

Conversation

@kommander

Copy link
Copy Markdown
Contributor

Snapshots kept the crypto group's loaded bit but not std.crypto. After require('crypto') and a resume, Object.prototype.toString.call({}) returned "[object Crypto]". This saves and restores std.crypto with the other std ids, and roots std.crypto and std.bigint in reach.rs. Adds a Rust test. TS isn't affected: its globals, crypto included, are made eagerly and restored by name.

@kommander
kommander merged commit db855a9 into dev Dec 2, 2026
2 checks passed
@kommander
kommander deleted the fix/snapshot-std-crypto branch December 2, 2026 23:52
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