From cbcf4fe768fc9e046d18e58510c77de17c83ed4d Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 24 Nov 2011 02:19:54 +0100 Subject: [PATCH] Don't die when arguments are passed to process.cwd() --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index 4664287..1f5e2c9 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1163,9 +1163,9 @@ static Handle Chdir(const Arguments& args) { return Undefined(); } + static Handle Cwd(const Arguments& args) { HandleScope scope; - assert(args.Length() == 0); char *r = getcwd(getbuf, ARRAY_SIZE(getbuf) - 1); if (r == NULL) { -- 2.7.4