You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ddfc8b0
Browse filesBrowse the repository at this point in the historyBrowse files
fix(runtime): deliver a posted undefined as undefined, not null (#2087)
* fix(runtime): deliver a posted undefined as undefined, not null
Every delivery path built its MessageEvent through the public constructor, whose init dictionary turns an undefined data into null. Delivery now goes through an internal factory that stores the payload as given. The native messageerror paths pass null so that event keeps its default data, and a worker's messageerror carries the deserialization failure as its data, as a port's already does.
* docs(worker): a messageerror carries the deserialization failure
Co-authored-by: Adrian Niculescu <15037449+adrian-niculescu@users.noreply.github.com>
0 commit comments