We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5133 - Emscripten_SetWindowTitle throws exception
Summary: Emscripten_SetWindowTitle throws exception
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.13
Hardware: Other Other
: P2 major
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.14
Depends on:
Blocks:
 
Reported: 2020-05-13 08:08 UTC by Caleb Cornett
Modified: 2020-05-13 20:49 UTC (History)
0 users

See Also:


Attachments
Patch for the described issue (1.19 KB, application/octet-stream)
2020-05-13 08:08 UTC, Caleb Cornett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Cornett 2020-05-13 08:08:03 UTC
Created attachment 4339 [details]
Patch for the described issue

Since Emscripten v1.38.40, the `setWindowTitle` function is a regular JS variable instead of a property of a Module object. As a result, Emscripten_SetWindowTitle cannot find the function it is looking for and throws an exception.

This was recently fixed in the emscripten-ports fork, but apparently the patch was not pushed upstream. I have attached it here.
Comment 1 Ryan C. Gordon 2020-05-13 20:49:22 UTC
This patch is now https://hg.libsdl.org/SDL/rev/ed5f41281cb0, thanks!

--ryan.