wasm: fix passing environmental variables

Task-number: QTBUG-75530
Change-Id: Ic0f0bd8ce863f55d737d96bbf9e5473466381c9b
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Lorn Potter 2019-05-02 09:58:07 +10:00
parent 854156dd07
commit 837c80bad3

View File

@ -404,7 +404,7 @@ function QtLoader(config)
Module.preRun = Module.preRun || []
Module.preRun.push(function() {
for (var [key, value] of Object.entries(config.environment)) {
Module.ENV[key.toUpperCase()] = value;
ENV[key.toUpperCase()] = value;
}
});