Skip to content

Commit fb69ac9

Browse files
authored
Fix emscripten_websocket_get_url_length() function call. (emscripten-core#9896)
1 parent e5ccdbc commit fb69ac9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/library_websocket.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ var LibraryWebSocket = {
109109
#endif
110110
return {{{ cDefine('EMSCRIPTEN_RESULT_INVALID_TARGET') }}};
111111
}
112+
HEAPU32[urlLength>>2] = lengthBytesUTF8(socket.url);
112113
return {{{ cDefine('EMSCRIPTEN_RESULT_SUCCESS') }}};
113114
},
114115

0 commit comments

Comments
 (0)