Skip to content

Commit 6b34958

Browse files
committed
piljs: implement warn.
1 parent 3c837ae commit 6b34958

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

emulisp/piljs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ path = require('path')
88
function stdPrint(text) {
99
console.log(text.replace(/\n$/g,''));
1010
}
11+
// Override _warn with the official mechanism.
12+
function warn(msg) {
13+
console.log(msg);
14+
}
1115

1216
var NO_DEBUG = "piljs -> no debug yet";
1317

0 commit comments

Comments
 (0)