projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16889e2
)
Don't die when arguments are passed to process.cwd()
author
Bert Belder
<bertbelder@gmail.com>
Thu, 24 Nov 2011 01:19:54 +0000
(
02:19
+0100)
committer
Bert Belder
<bertbelder@gmail.com>
Thu, 24 Nov 2011 01:19:54 +0000
(
02:19
+0100)
src/node.cc
patch
|
blob
|
history
diff --git
a/src/node.cc
b/src/node.cc
index
4664287
..
1f5e2c9
100644
(file)
--- a/
src/node.cc
+++ b/
src/node.cc
@@
-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) {