mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
core: Append filename properly in dlopen on windows
Fixes simple/test-module-loading on win32
This commit is contained in:
1 parent
08f5db112f
commit
6076a25e80
1 file changed
+1
-1
+1
-1
@@ -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