wasn't sending pos arg for puts()

This commit is contained in:
Ryan 2009-04-23 14:22:57 +02:00
parent a4593e3ebd
commit 8a8e9df72e
3 changed files with 8 additions and 4 deletions

4
configure vendored
View File

@ -80,9 +80,9 @@ all-progress:
install:
if test -n "\$(DESTDIR)"; then \\
$WAF install --yes --destdir="\$(DESTDIR)" ; \\
$WAF install --destdir="\$(DESTDIR)" ; \\
else \\
$WAF install --yes ; \\
$WAF install ; \\
fi;
uninstall:

View File

@ -40,7 +40,11 @@ File.cat = function (path, callback) {
}
File.prototype.puts = function (data, callback) {
this.write(data + "\n", callback);
this.write(data + "\n", -1, callback);
};
File.prototype.print = function (data, callback) {
this.write(data, -1, callback);
};
File.prototype.open = function (path, mode, callback) {

View File

@ -126,7 +126,7 @@ node.path = new function () {
function finish() {
//node.debug("finish 1 load <" + filename + ">");
if (scaffold.onLoad instanceof Function) {
//node.debug("foo bar <" + filename + ">");
//node.debug("calling onLoad for <" + filename + ">");
scaffold.onLoad();
}
//node.debug("finish 2 load <" + filename + ">");