Skip to content

Commit

Permalink
Update test worker (#1123)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Dec 20, 2024
1 parent fee223a commit d774780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ export class Target {
continue;
}
const match = /(.*)\[(.*)\]/.exec(property);
if (match.length === 3 && context[match[1]] !== undefined) {
if (match && match.length === 3 && context[match[1]] !== undefined) {
const array = context[match[1]];
const index = parseInt(match[2], 10);
if (array[index] !== undefined) {
Expand Down

0 comments on commit d774780

Please sign in to comment.