summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/chrome/subscript.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/xpconnect/tests/chrome/subscript.js')
-rw-r--r--js/xpconnect/tests/chrome/subscript.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/xpconnect/tests/chrome/subscript.js b/js/xpconnect/tests/chrome/subscript.js
new file mode 100644
index 000000000..3065694b9
--- /dev/null
+++ b/js/xpconnect/tests/chrome/subscript.js
@@ -0,0 +1,6 @@
+const Cu = Components.utils;
+Cu.import("resource://gre/modules/Services.jsm");
+
+var ns = {};
+Services.scriptloader.loadSubScript("resource://gre/modules/NetUtil.jsm", ns);
+var NetUtil = ns.NetUtil;