fix: Don't throw on missing keys, return undefined as it usually would

pull/10320/head
S. Elliott Johnson 10 months ago
parent 959abf6d6a
commit 83218b102f

@ -1926,7 +1926,7 @@ export function proxy_rest_array(items) {
if (typeof property === 'symbol') return target[property];
if (!isNaN(parseInt(property))) {
// @ts-expect-error -- It thinks arrays can't have properties that aren't numeric
return target[property]();
return target[property]?.();
}
// @ts-expect-error -- It thinks arrays can't have properties that aren't numeric
return target[property];

Loading…
Cancel
Save