Skip to content

Commit 834e424

Browse files
committed
Assert should not reach
1 parent f72e923 commit 834e424

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ export function recursion(pattern) {
8686
numCharClassesOpen--;
8787
}
8888
}
89-
// No change
90-
return pattern;
89+
throw new Error('Unexpected error; recursion was not processed');
9190
}
9291

9392
/**

0 commit comments

Comments
 (0)