Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Don't die when arguments are passed to process.cwd()
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Nov 24, 2011
1 parent 16889e2 commit cbcf4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.cc
Expand Up @@ -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) {
Expand Down

0 comments on commit cbcf4fe

Please sign in to comment.