/* STDERR IS ALWAY SYNC ALWAYS UTF8 */
-static Handle<Value>
-WriteError (const Arguments& args)
-{
+static Handle<Value> WriteError (const Arguments& args) {
HandleScope scope;
- if (args.Length() < 1)
+ if (args.Length() < 1) {
return Undefined();
+ }
String::Utf8Value msg(args[0]->ToString());
written += (size_t)r;
}
- return Undefined();
+ return True();
}
assert.equal('foo\n', strings.shift());
assert.equal('foo bar\n', strings.shift());
assert.equal('foo bar hop\n', strings.shift());
+
+
+assert.equal(true, process.stderr.write("hello world"));