Skip to content

Commit c1ad1f8

Browse files
committed
Fix: DoStringAsync chunkName argument is not reflected when there is a syntax error
1 parent 8d67f25 commit c1ad1f8

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)