Remove the instance.ENV assignment in js test runner
The assignment crashes with 3.1.25 as instance.ENV is now a read-only property. This used to be assigned to an empty object, so it was useless anyway. Change-Id: I47d4cd831052de514c372adb3f2202d8a0a6e06f Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
aa29b3ef52
commit
8745a73c4f
@ -176,12 +176,6 @@ export class CompiledModule {
|
|||||||
instanceParams.monitorRunDependencies = (name) => { };
|
instanceParams.monitorRunDependencies = (name) => { };
|
||||||
instanceParams.print = (text) => true && console.log(text);
|
instanceParams.print = (text) => true && console.log(text);
|
||||||
instanceParams.printErr = (text) => true && console.warn(text);
|
instanceParams.printErr = (text) => true && console.warn(text);
|
||||||
instanceParams.preRun = [
|
|
||||||
(instance) => {
|
|
||||||
const env = {};
|
|
||||||
instance.ENV = env;
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
instanceParams.mainScriptUrlOrBlob = new Blob([this.#js], {
|
instanceParams.mainScriptUrlOrBlob = new Blob([this.#js], {
|
||||||
type: 'text/javascript',
|
type: 'text/javascript',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user