Remove compiler warning with extra assert.

pull/5370/head
Ryan 2009-09-09 18:06:58 +02:00
parent 393caeb4c9
commit efb2b703a6
1 changed files with 2 additions and 0 deletions

View File

@ -189,6 +189,8 @@ Close (const Arguments& args)
{
HandleScope scope;
assert(stdio == args.Holder());
if (stdin_fd < 0) {
return ThrowException(Exception::Error(String::New("stdin not open")));
}