Fix potential infinite loop condition in test suite #735
No reviewers
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#735
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I was doing some testing with js-xlsx's test suite and ran into a test that was hanging. The problem was cmparr()'s for-loop condition. Switching from
!=
to<
fixed the hung test and caused it to error correctly. Thought I'd drop the fix here in-case it's useful to js-xlsx.Good catch! Out of curiosity, what platform triggered the error?
I made some custom changes to the js-xlsx test suite in relation to a TypeScript project I was working that has some special excel import/export requirements.
The issue doesn't occur in a clean clone of the js-xlsx repository, just related to some custom changes I made that happened to uncover this.
Pull request closed