Open bobbystacksmash opened 5 years ago
This snippet of code is part of the FSO.FolderExists() method which is not throwing the correct WINAPI exception when the dirpath is not a valid type - it throws a node.js exception about .toString() not being defined for dirpath.
FSO.FolderExists()
.toString()
dirpath
if (typeof dirpath !== "string") { try { dirpath = dirpath.toString(); } catch (e) { throw e; } }
This snippet of code is part of the
FSO.FolderExists()
method which is not throwing the correct WINAPI exception when the dirpath is not a valid type - it throws a node.js exception about.toString()
not being defined fordirpath
.