Skip to content

Add parameters to error and close callbacks#28

Merged
bghgary merged 5 commits into
BabylonJS:mainfrom
lmaskati:lmaskati/callbacks
May 17, 2023
Merged

Add parameters to error and close callbacks#28
bghgary merged 5 commits into
BabylonJS:mainfrom
lmaskati:lmaskati/callbacks

Conversation

@lmaskati
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread Polyfills/WebSocket/Source/WebSocket.cpp Outdated
Comment thread Polyfills/WebSocket/Source/WebSocket.cpp Outdated
@lmaskati lmaskati marked this pull request as ready for review May 16, 2023 00:16
@bghgary bghgary merged commit 305bad0 into BabylonJS:main May 17, 2023
bkaradzic-microsoft added a commit to bkaradzic-microsoft/JsRuntimeHost that referenced this pull request May 14, 2026
Picks up:
- UrlLib BabylonJS#28: client-side-failure fixes (Unix worker thread no longer terminates on missing local files; Apple Open no longer throws synchronously on missing app:/// paths) plus per-request response state reset hoisted to ImplBase::ResetForOpen().
- UrlLib BabylonJS#29: UWP build fix (guard the new m_fileResponseBuffer.clear() call with WINAPI_PARTITION_DESKTOP).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bkaradzic-microsoft added a commit that referenced this pull request May 14, 2026
Picks up [UrlLib #28](BabylonJS/UrlLib#28) so
consumers (including BabylonNative) get the client-side-failure fixes:

- `ImplBase::ResetForOpen()` clears `m_statusCode`, `m_responseUrl`,
`m_responseString`, `m_headers` between `Open()` calls on all 5
platforms (Win32, UWP, Unix, Apple, Android).
- Unix `PerformAsync` no longer lets `curl_check` exceptions escape
`std::thread` -> `std::terminate`; falls back to `status=0 + loadend`
like Win32/UWP.
- Apple `Open` no longer throws synchronously when `[NSBundle
pathForResource:]` returns nil for missing local files; sets `m_url =
nil` and lets the existing `SendAsync` branch return `status=0`.

This is a pin-bump only: no source changes in JsRuntimeHost itself.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants