Skip to content

Commit 8501041

Browse files
authored
Merge pull request #34 from AnnulusGames/fix-dostring-chunkname
Fix: `DoStringAsync` chunkName argument is not reflected when there is a syntax error
2 parents 8d67f25 + c1ad1f8 commit 8501041

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Lua/LuaStateExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public static class LuaStateExtensions
88
{
99
public static ValueTask<int> DoStringAsync(this LuaState state, string source, Memory<LuaValue> buffer, string? chunkName = null, CancellationToken cancellationToken = default)
1010
{
11-
var syntaxTree = LuaSyntaxTree.Parse(source);
11+
var syntaxTree = LuaSyntaxTree.Parse(source, chunkName);
1212
var chunk = LuaCompiler.Default.Compile(syntaxTree, chunkName);
1313
return state.RunAsync(chunk, buffer, cancellationToken);
1414
}

0 commit comments

Comments
 (0)