Skip to content
This repository was archived by the owner on Jun 12, 2022. It is now read-only.

Commit 34eb156

Browse files
committed
Define SourceMode default
1 parent 13173ef commit 34eb156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ struct CliFileResolver : Luau::FileResolver
245245

246246
std::optional<Luau::SourceCode> readSource(const Luau::ModuleName& name) override
247247
{
248-
Luau::SourceCode::Type sourceType;
248+
Luau::SourceCode::Type sourceType = Luau::SourceCode::Script;
249249
std::optional<std::string> source = std::nullopt;
250250

251251
// If the module name is "-", then read source from stdin

0 commit comments

Comments
 (0)