mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
cf1a271733
We concatenate JSMs together so we use less compartments and therefore less memory. This is intended to be a temporary hack until the overhead of compartments is less.
21 lines
452 B
JavaScript
21 lines
452 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
const modules = [
|
|
"healthreporter.jsm",
|
|
"profile.jsm",
|
|
"providers.jsm",
|
|
];
|
|
|
|
function run_test() {
|
|
for (let m of modules) {
|
|
let resource = "resource://gre/modules/services/healthreport/" + m;
|
|
Components.utils.import(resource, {});
|
|
}
|
|
|
|
Components.utils.import("resource://gre/modules/HealthReport.jsm", {});
|
|
}
|
|
|