зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7adf681210
Коммит
01907192f7
|
@ -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"]
|
||||
|
|
Загрузка…
Ссылка в новой задаче