Skip to content

Commit ba0dec5

Browse files
authored
Merge pull request #350 from mischief/access
luvit-loader: fix uv fs_access call
2 parents 8c3aa6a + 12ccf41 commit ba0dec5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

luvit-loader.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ local function searcher(path)
237237
return 'bundle:' .. fullPath, loader
238238
end
239239
else
240-
if uv.fs_access(fullPath) then
240+
if uv.fs_access(fullPath, 'r') then
241241
return fullPath, loader
242242
end
243243
end

0 commit comments

Comments
 (0)