mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
core: Append filename properly in dlopen on windows
Fixes simple/test-module-loading on win32
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user