view sample-module.js @ 37:193ff16b013a

Added a dumpHeap() function to the TCB global object, which can be used even w/o debug builds of SpiderMonkey.
author Atul Varma <varmaa@toolness.com>
date Mon, 22 Jun 2009 17:24:18 -0700
parents 69622f55fcf6
children
line wrap: on
line source

// This is a sample SecurableModule.

function boo() {
  return boo.caller;
}

exports.foo = function foo() {

  imports.print(imports.blop + " "  + foo.caller + " " + boo() +
                " " + imports.print.__proto__);
};