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

Bug in qtloader.js: Setting environment variables fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.13.0 Beta 1
    • Core: Other
    • None
    • WebAssembly
    • 837c80bad3242ee9a6e73fda9adf9cfbeb8dd9fe

    Description

      There is a bug in qtloader.js which doesn't allow setting environment variables as it is documented. 

      The origin code will produce the following javascript error:

      Unable to set <key> of undefined.

      line 397 in qtloader.js needs to be

      ENV[key.toUpperCase()] = value;

      instead of 

      Module.ENV[key.toUpperCase()] = value;

      See https://emscripten.org/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html#interacting-with-code-environment-variables .

      ENV is not part of the Module object.

       

       

      Attachments

        For Gerrit Dashboard: QTBUG-75530
        # Subject Branch Project Status CR V

        Activity

          People

            lpotter Lorn Potter
            friedemann Friedemann Metzger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes