-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add WS dep to emscripten_websocket_new (fixes #26310) #26317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -275,6 +275,7 @@ var LibraryWebSocket = { | |||||
| return {{{ cDefs.EMSCRIPTEN_RESULT_SUCCESS }}}; | ||||||
| }, | ||||||
|
|
||||||
| emscripten_websocket_new__deps: ['$WS'], | ||||||
|
||||||
| emscripten_websocket_new__deps: ['$WS'], | |
| emscripten_websocket_new__deps: ['$WS', '$webSockets'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emscripten_websocket_newonly references thewebSocketshandle allocator (it doesn't use theWShelper object). Depending on$WSwill also pull inmallocvia$WS__deps, which can unnecessarily increase code size for minimal builds that only callemscripten_websocket_new. Consider changing this dependency to$webSockets(or otherwise avoid bringing inmalloc) so the fix is minimal and directly matches what the function uses.