view modules/foo.js @ 6:97adec8c8127

Now passing all CommonJS SecurableModule compliance tests.
author Atul Varma <varmaa@toolness.com>
date Thu, 10 Sep 2009 01:04:04 -0700
parents ae5869491e61
children
line wrap: on
line source

print('loading foo');

exports.bar = function bar() {
  print('hay!');
};

exports.hello = 1;

require('baz').blop();

print('foo loaded.');