Skip to content

Commit

Permalink
[js] Make nqp::istype and boolification work on directory handles
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Aug 24, 2018
1 parent a778b81 commit 0f9772b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/vm/js/nqp-runtime/io.js
Expand Up @@ -355,6 +355,14 @@ class DirHandle {

$$closedir() {
}

$$istype(type) {
return 0;
}

$$toBool(ctx) {
return 1;
}
};

op.opendir = function(path) {
Expand Down

0 comments on commit 0f9772b

Please sign in to comment.