blob: e30c2615d4e89dd88d829c3aa39e3d142bfd6c6f [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 to
* make ndn-js.jsm .
* The file ../../tools/build/ndn-js.js must already be built.
* author: Jeff Thompson
* See COPYING for copyright and distribution information.
*/
var EXPORTED_SYMBOLS = ["Closure", "ContentObject", "DataUtils", "Interest", "MimeTypes", "NDN",
"Name", "Sha256", "XpcomTransport"];
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
Components.utils.import("resource://gre/modules/NetUtil.jsm");
// 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");
}
};