Skip to content

Commit 8fd189c

Browse files
committed
Revert "Fixes requirejs#196, make sure logging in node is done synchronously/completely flushed."
This reverts commit 0889064.
1 parent 041dab3 commit 8fd189c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

build/jslib/node/print.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@
44
* see: http://github.com/jrburke/requirejs for details
55
*/
66

7-
/*jslint */
8-
/*global define, process */
7+
/*jslint strict: false */
8+
/*global define: false, console: false */
99

10-
define(['fs'], function (fs) {
11-
'use strict';
10+
define(function () {
1211
function print(msg) {
13-
fs.writeSync(process.stdout.fd, msg + '\n');
14-
fs.fsyncSync(process.stdout.fd);
12+
console.log(msg);
1513
}
1614

1715
return print;

0 commit comments

Comments
 (0)