Skip to content

feat: enable WASM trap handlers in all Node.js processes - #48983

Merged
deepak1556 merged 1 commit into
mainfrom
robo/reland_wasm_trap_handlers
Feb 18, 2026
Merged

deepak1556 merged 1 commit into
mainfrom
robo/reland_wasm_trap_handlers

Conversation

@deepak1556

Copy link
Copy Markdown
Member

Description of Change

Original reason for revert:

Some apps started throwing exception on startup
https://github.com/electron/electron/issues/48956

We now move the trap handler registration before any user script execution. Add a fuse to support disabling the feature for application that needs to run in memory constrained environments.

Release Notes

Notes: Enable wasm trap handlers behind WasmTrapHandlers fuse

@deepak1556 deepak1556 added semver/minor backwards-compatible functionality target/39-x-y PR should also be added to the "39-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch. labels Nov 16, 2025
@deepak1556

Copy link
Copy Markdown
Member Author

Do Not Merge

Wait for verification from apps in #48956

@deepak1556
deepak1556 force-pushed the robo/reland_wasm_trap_handlers branch from bf98e8c to b4af1b7 Compare November 16, 2025 11:33
@deepak1556 deepak1556 changed the title Reland "feat: enable WASM trap handlers in all Node.js processes" feat: enable WASM trap handlers in all Node.js processes Nov 16, 2025
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Nov 23, 2025
@ckerr

ckerr commented Nov 24, 2025

Copy link
Copy Markdown
Member

Do Not Merge

Wait for verification from apps in #48956

Converting to a draft for now just to be safe

@ckerr
ckerr marked this pull request as draft November 24, 2025 16:49

@ckerr ckerr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code and docs LGTM.

Do fuses count as API? If so,

API LGTM

@github-actions github-actions Bot added the target/41-x-y PR should also be added to the "41-x-y" branch. label Jan 19, 2026
@deepak1556 deepak1556 removed the target/39-x-y PR should also be added to the "39-x-y" branch. label Jan 22, 2026
@deepak1556
deepak1556 marked this pull request as ready for review January 22, 2026 18:02
@deepak1556

Copy link
Copy Markdown
Member Author

Going to reland this to align with upstream, have tested this change for quite a while and should be good to go.

@codebytere codebytere left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

```
Original reason for revert:

Some apps started throwing exception on startup
#48956
```

We now move the trap handler registeration before
any user script execution. Add a fuse to support
disabling the feature is application needs to run
in memory constrained environments.
@deepak1556
deepak1556 force-pushed the robo/reland_wasm_trap_handlers branch from b4af1b7 to 08f54ee Compare January 23, 2026 17:53
@deepak1556
deepak1556 merged commit 0506154 into main Feb 18, 2026
@deepak1556
deepak1556 deleted the robo/reland_wasm_trap_handlers branch February 18, 2026 03:08
@release-clerk

release-clerk Bot commented Feb 18, 2026

Copy link
Copy Markdown

Release Notes Persisted

Enable wasm trap handlers behind WasmTrapHandlers fuse

@trop

trop Bot commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "40-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot removed the target/40-x-y PR should also be added to the "40-x-y" branch. label Feb 18, 2026
@trop

trop Bot commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "41-x-y", please check out #49839

@trop trop Bot added in-flight/41-x-y merged/41-x-y PR was merged to the "41-x-y" branch. and removed target/41-x-y PR should also be added to the "41-x-y" branch. in-flight/41-x-y labels Feb 18, 2026
kycutler pushed a commit to kycutler/electron that referenced this pull request Feb 26, 2026
)

fix: enable WASM trap handlers in all Node.js processes

```
Original reason for revert:

Some apps started throwing exception on startup
electron#48956
```

We now move the trap handler registeration before
any user script execution. Add a fuse to support
disabling the feature is application needs to run
in memory constrained environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-review/approved ✅ merged/41-x-y PR was merged to the "41-x-y" branch. semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants