Skip to content

Commit 59bb032

Browse files
committed
[js] Follow moar semantics on nqp::stat and ISLNK
1 parent a40c4c5 commit 59bb032

File tree

1 file changed

+1
-1
lines changed
  • src/vm/js/nqp-runtime

1 file changed

+1
-1
lines changed

src/vm/js/nqp-runtime/io.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function stat(file, code, lstat) {
5454

5555
// we can't use fs.existsSync(file) as it follows symlinks
5656
try {
57-
if (lstat) {
57+
if (lstat || code == ISLNK) {
5858
var stats = fs.lstatSync(file);
5959
} else {
6060
var stats = fs.statSync(file);

0 commit comments

Comments
 (0)