mirror of https://github.com/nodejs/node.git
core: Append filename properly in dlopen on windows
Fixes simple/test-module-loading on win32pull/24507/merge
parent
08f5db112f
commit
6076a25e80
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue