summaryrefslogtreecommitdiff
path: root/std/node/module.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/node/module.ts')
-rw-r--r--std/node/module.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/node/module.ts b/std/node/module.ts
index 522eaec7e..138cf916e 100644
--- a/std/node/module.ts
+++ b/std/node/module.ts
@@ -54,7 +54,7 @@ function stat(filename: string): StatResult {
}
try {
const info = Deno.statSync(filename);
- const result = info.isFile() ? 0 : 1;
+ const result = info.isFile ? 0 : 1;
if (statCache !== null) statCache.set(filename, result);
return result;
} catch (e) {