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:
23cf938
)
process.kill coerces args to integers
author
Ryan Dahl
<ry@tinyclouds.org>
Tue, 21 Dec 2010 23:40:10 +0000
(15:40 -0800)
committer
Ryan Dahl
<ry@tinyclouds.org>
Tue, 21 Dec 2010 23:41:22 +0000
(15:41 -0800)
src/node.cc
patch
|
blob
|
history
diff --git
a/src/node.cc
b/src/node.cc
index
b4d4c90
..
8039d79
100644
(file)
--- a/
src/node.cc
+++ b/
src/node.cc
@@
-1244,7
+1244,7
@@
v8::Handle<v8::Value> MemoryUsage(const v8::Arguments& args) {
Handle<Value> Kill(const Arguments& args) {
HandleScope scope;
- if (args.Length() != 2
|| !args[0]->IsNumber() || !args[1]->IsNumber()
) {
+ if (args.Length() != 2) {
return ThrowException(Exception::Error(String::New("Bad argument.")));
}