Don't die when arguments are passed to process.cwd()
authorBert Belder <bertbelder@gmail.com>
Thu, 24 Nov 2011 01:19:54 +0000 (02:19 +0100)
committerBert Belder <bertbelder@gmail.com>
Thu, 24 Nov 2011 01:19:54 +0000 (02:19 +0100)
src/node.cc

index 4664287..1f5e2c9 100644 (file)
@@ -1163,9 +1163,9 @@ static Handle<Value> Chdir(const Arguments& args) {
   return Undefined();
 }
 
+
 static Handle<Value> Cwd(const Arguments& args) {
   HandleScope scope;
-  assert(args.Length() == 0);
 
   char *r = getcwd(getbuf, ARRAY_SIZE(getbuf) - 1);
   if (r == NULL) {