You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var document = Document.CreateDefault("{[x: 42][0]}");
var context = Context.CreateCustom(new Dictionary<Value, Value> { ["x"] = 0 });
return document.DocumentOrThrow.Render(context);
Expected result: "42"
Actual result: string.Empty
Description:
Document optimizer performs invalid optimization of maps with non-constant indices and constant subscript. In the example above, it will assume map doesn't contain a value at index 0 while variable x can take this value at render time, making the assumption wrong.
The text was updated successfully, but these errors were encountered:
Version: 1.6.1
Code:
Expected result:
"42"
Actual result:
string.Empty
Description:
Document optimizer performs invalid optimization of maps with non-constant indices and constant subscript. In the example above, it will assume map doesn't contain a value at index
0
while variablex
can take this value at render time, making the assumption wrong.The text was updated successfully, but these errors were encountered: