Skip to content

Commit

Permalink
fixup! feat(ivy): graceful evaluation of unknown or invalid expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoostK committed Oct 29, 2019
1 parent 6f95a63 commit a4ef480
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -359,9 +359,6 @@ export class StaticInterpreter {
if (typeof rhs !== 'number' || !Number.isInteger(rhs)) {
return DynamicValue.fromInvalidExpressionType(node, rhs);
}
if (rhs < 0 || rhs >= lhs.length) {
return undefined;
}
return lhs[rhs];
} else if (lhs instanceof Reference) {
const ref = lhs.node;
Expand Down

0 comments on commit a4ef480

Please sign in to comment.