Skip to content

MainLoop object updateStatus() method error #26076

Closed

Description

@Ordneri

At emcc built js file:
The MainLoop object updateStatus() method:

updateStatus() {
        if (Module['setStatus']) {
          var message = Module['statusMessage'] || 'Please wait...';
          var remaining = MainLoop.remainingBlockers ?? 0;
          var expected = MainLoop.expectedBlockers ?? 0;
          if (remaining) {
            if (remaining < expected) {
              Module['setStatus'](`{message} ({expected - remaining}/{expected})`);
            } else {
              Module['setStatus'](message);
            }
          } else {
            Module['setStatus']('');
          }
        }
      }

the line:

Module['setStatus'](`{message} ({expected - remaining}/{expected})`);

should be

Module['setStatus'](`${message} (${expected - remaining}/${expected})`);

Activity

  1. sbc100 commented on Jan 10, 2026

    @sbc100
    Collaborator

    Good catch! Any chance you have time to send a PR to fix that?

  2. added a commit that references this issue on Nov 5, 2026
    5ad04cb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions