mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-30 03:05:44 +01:00
Replace expression closures (function declarations).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
|
||||
var EXPORTED_SYMBOLS = ["require"];
|
||||
|
||||
function create(proto) Object.create(proto);
|
||||
function create(proto) {
|
||||
return Object.create(proto);
|
||||
}
|
||||
|
||||
this["import"] = function import_(obj) {
|
||||
let res = {};
|
||||
@@ -20,6 +22,8 @@ if (typeof TextEncoder == "undefined")
|
||||
|
||||
// Deal with subScriptLoader prepending crap to loaded URLs
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
function loadSubScript() Services.scriptloader.loadSubScript.apply(null, arguments);
|
||||
function loadSubScript() {
|
||||
return Services.scriptloader.loadSubScript.apply(null, arguments);
|
||||
}
|
||||
|
||||
// vim: set fdm=marker sw=4 sts=4 ts=8 et ft=javascript:
|
||||
|
||||
Reference in New Issue
Block a user