core: Append filename properly in dlopen on windows

Fixes simple/test-module-loading on win32
pull/24507/merge
isaacs 2013-03-07 15:14:22 -08:00
parent 08f5db112f
commit 6076a25e80
1 changed files with 1 additions and 1 deletions

View File

@ -1893,7 +1893,7 @@ Handle<Value> DLOpen(const v8::Arguments& args) {
Local<String> errmsg = String::New(uv_dlerror(&lib));
#ifdef _WIN32
// Windows needs to add the filename into the error message
errmsg = String::Concat(errmsg, args[0]->ToString());
errmsg = String::Concat(errmsg, args[1]->ToString());
#endif
return ThrowException(Exception::Error(errmsg));
}