Skip to content

Commit 96cd219

Browse files
authored
Merge pull request #1482 from antimatter15/patch-2
Performance improvement in col-cache
2 parents 85c680a + 7289e9c commit 96cd219

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/utils/col-cache.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ const colCache = {
4747
let l2;
4848
let l3;
4949
let n = 1;
50+
if (level >= 4) {
51+
throw new Error(`Out of bounds. Excel supports columns from 1 to 16384`);
52+
}
5053
if (level >= 1) {
5154
while (n <= 26) {
5255
c = this._dictionary[n - 1];

0 commit comments

Comments
 (0)