Bug 1312041 - make loader-plugin-raw.jsm eslint-clean; r=jryans

MozReview-Commit-ID: 4Lkua3ZMslL

--HG--
extra : rebase_source : 0af01c48c93e8006fcbe28ed198076e5ecd74c21
This commit is contained in:
Tom Tromey 2016-10-25 21:24:13 -06:00
parent 713178fa1e
commit 74d7569a65
2 changed files with 2 additions and 5 deletions

View File

@ -134,8 +134,6 @@ devtools/shared/*.js
!devtools/shared/indentation.js
!devtools/shared/loader-plugin-raw.jsm
!devtools/shared/task.js
devtools/shared/*.jsm
!devtools/shared/Loader.jsm
devtools/shared/apps/**
devtools/shared/client/**
devtools/shared/discovery/**

View File

@ -13,7 +13,7 @@ const { NetUtil } = Cu.import("resource://gre/modules/NetUtil.jsm", {});
* requires; other requires should not be passed to this. See
* https://github.com/webpack/raw-loader.
*/
function requireRawId(id, require) {
this.requireRawId = function (id, require) {
// Add the chrome:// protocol for properties files if missing (see Bug 1294220)
if (id.endsWith(".properties") && !id.startsWith("raw!chrome://")) {
id = id.replace("raw!", "raw!chrome://");
@ -28,7 +28,6 @@ function requireRawId(id, require) {
uri = uri.slice(0, -3);
}
let stream = NetUtil.newChannel({
uri: NetUtil.newURI(uri, "UTF-8"),
loadUsingSystemPrincipal: true
@ -43,6 +42,6 @@ function requireRawId(id, require) {
// For the time being it doesn't seem worthwhile to cache the
// result here.
return data;
}
};
this.EXPORTED_SYMBOLS = ["requireRawId"];