Skip to content

Commit

Permalink
Tweak type
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed May 14, 2024
1 parent f126ca6 commit 0b172a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grafast/grafast/src/engine/LayerPlan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ export class LayerPlan<TReason extends LayerPlanReason = LayerPlanReason> {
if (this.rootStep._isUnary) {
throw new Error("listItem layer plan can't have a unary root step!");
}
const ev = batchExecutionValue([]);
const ev = batchExecutionValue([] as any[]);
store.set(itemStepId, ev);

for (const stepId of copyStepIds) {
Expand Down Expand Up @@ -552,7 +552,7 @@ export class LayerPlan<TReason extends LayerPlanReason = LayerPlanReason> {
for (let j = 0, l = list.length; j < l; j++) {
const newIndex = size++;
newIndexes.push(newIndex);
(ev.entries[newIndex] as any[]) = list[j];
(ev.entries as any[])[newIndex] = list[j];
// TODO: are these the right flags?
ev._flags[newIndex] = list[j] == null ? FLAG_NULL : NO_FLAGS;

Expand Down

0 comments on commit 0b172a1

Please sign in to comment.