mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
4962702e4a
The REPL needs the full require(); add test for that behavior.
26 lines
345 B
JavaScript
26 lines
345 B
JavaScript
var c = require("./b/c");
|
|
|
|
common.debug("load fixtures/a.js");
|
|
|
|
var string = "A";
|
|
|
|
exports.SomeClass = c.SomeClass;
|
|
|
|
exports.A = function () {
|
|
return string;
|
|
};
|
|
|
|
exports.C = function () {
|
|
return c.C();
|
|
};
|
|
|
|
exports.D = function () {
|
|
return c.D();
|
|
};
|
|
|
|
exports.number = 42;
|
|
|
|
process.addListener("exit", function () {
|
|
string = "A done";
|
|
});
|