Permalink
Browse files

[fix] runtime, logger: Since node 0.10.3

  • Loading branch information...
1 parent 29948a3 commit 18245933dc00250fe0ea475a6603d06aa6f524db RG committed Apr 12, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/plugins/opabsl/jsbsl/bslLogger.js
@@ -1,5 +1,5 @@
/*
- Copyright © 2011, 2012 MLstate
+ Copyright © 2011-2013 MLstate
This file is part of Opa.
@@ -74,7 +74,7 @@ function output(oc,str) {
process.stderr.write(str); // note: all writes to stderr are blocking
return js_void;
} else {
- var written = fs.writeSync(oc, str, 0, str.length, null);
+ var written = fs.writeSync(oc, new Buffer(str), 0, str.length, null);
if (written < str.length) console.log("BslLogger.output: string length "+str.length+" written "+written);
return js_void;
};

0 comments on commit 1824593

Please sign in to comment.