Bug 1834176 - Convert NetUtil.jsm to an ES module. r=necko-reviewers,valentin

Depends on D178588

Differential Revision: https://phabricator.services.mozilla.com/D178954
This commit is contained in:
Mark Banner 2023-05-24 16:11:15 +00:00
Родитель 7adf681210
Коммит 01907192f7
2 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -4,8 +4,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var EXPORTED_SYMBOLS = ["NetUtil"];
/**
* Necko utilities
*/
@ -24,7 +22,7 @@ const BinaryInputStream = Components.Constructor(
// //////////////////////////////////////////////////////////////////////////////
// // NetUtil Object
var NetUtil = {
export var NetUtil = {
/**
* Function to perform simple async copying from aSource (an input stream)
* to aSink (an output stream). The copy will happen on some background

Просмотреть файл

@ -303,7 +303,7 @@ elif CONFIG["OS_ARCH"] == "Linux":
]
EXTRA_JS_MODULES += [
"NetUtil.jsm",
"NetUtil.sys.mjs",
]
DIRS += ["mozurl", "rust-helper", "http-sfv"]