~ubuntu-branches/ubuntu/precise/nodejs/precise

« back to all changes in this revision

Viewing changes to test/fixtures/global/sub2.js

  • Committer: Bazaar Package Importer
  • Author(s): Jérémy Lal
  • Date: 2010-08-20 11:49:04 UTC
  • mfrom: (7.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100820114904-lz22w6fkth7yh179
Tags: 0.2.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
foo2 = "foo2";
 
2
global.bar2 = "bar2";
 
3
 
 
4
 
 
5
exports.globalKeys = function () {
 
6
  return Object.getOwnPropertyNames(global);
 
7
};
 
8
 
 
9
exports.allFooBars = function () {
 
10
  return {
 
11
    foo0: global.foo0,
 
12
    bar0: bar0,
 
13
    foo1: global.foo1,
 
14
    bar1: bar1,
 
15
    foo2: global.foo2,
 
16
    bar2: bar2
 
17
  };
 
18
};