Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-79971

WebAssembly: Setting the environment no longer works

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 5.14
    • QPA
    • None
    • WebAssembly

    Description

      qtloader.js has API for setting the environment:

      var qtLoader = QtLoader({
          canvasElements : [canvas],
          environment : {"QT_LOGGING_RULES" : "*.debug=true"},
          ...
      });
      

      which is implemented by adding a "pre run" function which adds the environment variables to ENV, as documented.

      Module.preRun.push(function() {
          for (var [key, value] of Object.entries(config.environment)) {
               ENV[key.toUpperCase()] = value;
          }
      });
      

      As of 1.38.47-upstream, this is no longer works:

      ReferenceError: ENV is not defined qtloader.js:411:17
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            sorvig Morten Sørvig
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes