mirror of https://github.com/lukechilds/node.git
isaacs
14 years ago
7 changed files with 33 additions and 1 deletions
@ -0,0 +1,2 @@ |
|||||
|
exports.loaded = require('target'); |
||||
|
exports.module = module; |
@ -0,0 +1 @@ |
|||||
|
exports.loaded = 'from child'; |
@ -0,0 +1,5 @@ |
|||||
|
var child = require('../child'); |
||||
|
//console.log(child.module.require, child.module);
|
||||
|
console.log(child.module.require('target')); |
||||
|
console.log(child.loaded); |
||||
|
exports.loaded = child.module.require('target'); |
@ -0,0 +1 @@ |
|||||
|
exports.loaded = 'from parent'; |
Loading…
Reference in new issue