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

Summary: Emscripten_SetWindowTitle throws exception
Product: SDL Reporter: Caleb Cornett <spydog>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 Keywords: target-2.0.14
Version: 2.0.13   
Hardware: Other   
OS: Other   
Attachments: Patch for the described issue

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.