blob: cc703e85bf413be056e7c006bfb3cd1524c76c08 [file] [log] [blame]
/** This file is created by running make-ndn-js.jsm.sh in this directory.
It concatenates ndn-js-header.txt with all the ndn-js source files.
*/
var EXPORTED_SYMBOLS = ["NDN", "DataUtils", "readAllFromSocket"];
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Components.utils.import("resource://gre/modules/NetUtil.jsm");
// LOG is used by some of the NDN code.
var LOG = 0;
// jsbn.js needs the navigator object which isn't defined in XPCOM, so make a local hack.
var navigator = {
appName: "Netscape"
};
// Some code calls console.log without checking LOG>0. Until this is cleaned up, make a local hack console.
var console = {
log: function(message) {
dump(message + "\n");
}
};