node/test/fixtures/echo.js
Herbert Vojčík cf2b206a8e More changes to tests so they really work under context module loader.
Plus, getting rid of test/common.js defining things in global.
2010-08-17 08:41:05 -07:00

14 lines
280 B
JavaScript

common = require("../common");
assert = common.assert
common.print("hello world\r\n");
var stdin = process.openStdin();
stdin.addListener("data", function (data) {
process.stdout.write(data.toString());
});
stdin.addListener("end", function () {
process.stdout.end();
});