blob: 2517732774c9b23d8f6fa1e0c287d76207179a52 [file] [log] [blame]
Jeff Thompson745026e2012-10-13 12:49:20 -07001/* This file is created by running make-ndn-js.jsm.sh in this directory.
2 * It concatenates ndn-js-header.txt with all the ndn-js source files to
3 * make ndn-js.jsm .
Jeff Thompson146d7de2012-11-17 16:15:28 -08004 * author: Jeff Thompson
Jeff Thompson745026e2012-10-13 12:49:20 -07005 * See COPYING for copyright and distribution information.
Jeff Thompson08ab3cd2012-10-08 02:56:20 -07006 */
7
Jeff Thompson963d2da2012-12-02 23:31:22 -08008var EXPORTED_SYMBOLS = ["Closure", "ContentObject", "DataUtils", "Interest", "MimeTypes", "NDN",
9 "Name", "Sha256", "XpcomTransport"];
Jeff Thompson08ab3cd2012-10-08 02:56:20 -070010
11Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
12Components.utils.import("resource://gre/modules/NetUtil.jsm");
13
Jeff Thompson08ab3cd2012-10-08 02:56:20 -070014// jsbn.js needs the navigator object which isn't defined in XPCOM, so make a local hack.
15var navigator = {
16 appName: "Netscape"
17};
18
19// Some code calls console.log without checking LOG>0. Until this is cleaned up, make a local hack console.
20var console = {
21 log: function(message) {
22 dump(message + "\n");
23 }
24};
25