Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[js] Follow moar semantics on nqp::stat and ISLNK
  • Loading branch information
pmurias committed Jan 11, 2016
1 parent a40c4c5 commit 59bb032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/js/nqp-runtime/io.js
Expand Up @@ -54,7 +54,7 @@ function stat(file, code, lstat) {

// we can't use fs.existsSync(file) as it follows symlinks
try {
if (lstat) {
if (lstat || code == ISLNK) {
var stats = fs.lstatSync(file);
} else {
var stats = fs.statSync(file);
Expand Down

0 comments on commit 59bb032

Please sign in to comment.