Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
fixed faulty array values
Browse files Browse the repository at this point in the history
  • Loading branch information
eoussama committed Mar 22, 2024
1 parent b25c8a8 commit 63c1b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/interpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class Evaluator {
const arr = (identifier as IArrayVal).value;
const value = arr[index.value];

return value ? RuntimeHelper.createValue(value) : RuntimeHelper.createNull();
return value != null ? RuntimeHelper.createValue(value) : RuntimeHelper.createNull();
}

/**
Expand Down

0 comments on commit 63c1b1d

Please sign in to comment.