diff options
author | Ryan <ry@tinyclouds.org> | 2009-06-08 15:30:10 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-06-08 15:34:15 +0200 |
commit | b6fe4aec5017121fba5baebf50fc76f34d7eb626 (patch) | |
tree | 77db2064a0e5bde14bf86d07168d0d50a02d5542 /test/fixtures/a.js | |
parent | 887f05692353d01ec97e1e99ff34479a433ad985 (diff) | |
download | android-node-v8-b6fe4aec5017121fba5baebf50fc76f34d7eb626.tar.gz android-node-v8-b6fe4aec5017121fba5baebf50fc76f34d7eb626.tar.bz2 android-node-v8-b6fe4aec5017121fba5baebf50fc76f34d7eb626.zip |
Module system refactor
There is one major API change in the refactor: filename extensions are now
required when requiring or including modules.
Added extra test to test-module-loading.js.
Diffstat (limited to 'test/fixtures/a.js')
-rw-r--r-- | test/fixtures/a.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/fixtures/a.js b/test/fixtures/a.js index 111417ac1c..d1405e2d16 100644 --- a/test/fixtures/a.js +++ b/test/fixtures/a.js @@ -1,5 +1,10 @@ -var c = require("b/c"); +var c = require("b/c.js"); exports.A = function () { return "A"; -} -exports.C = function () { return c.C(); } +}; +exports.C = function () { + return c.C(); +}; +exports.D = function () { + return c.D(); +}; |