view sample-module.js @ 49:45fd970860f2

Added calls to JS_SuspendRequest() and JS_ResumeRequest() around blocking NSPR network calls.
author Atul Varma <varmaa@toolness.com>
date Wed, 24 Jun 2009 16:10:12 -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__);
};