0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/fixtures/a.js
Ryan Dahl 4962702e4a Revert requireNative changes: 4e6b9b0, d429033, 6abbfa0, bcad540
The REPL needs the full require(); add test for that behavior.
2010-09-19 11:22:15 -07:00

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";
});