diff --git a/src/node_stdio.cc b/src/node_stdio.cc index 209857d709..e4f290468c 100644 --- a/src/node_stdio.cc +++ b/src/node_stdio.cc @@ -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"))); }