joshbtn / excelFormulaUtilitiesJS

This library contains methods to beautify an excel formula. This library also contains functions to convert an excel formula to JavaScript (ECMAScript) or C# and python.
http://excelformulabeautifier.com/
Other
394 stars 101 forks source link

currentFunctionOnStack.name is undefined #46

Closed mo22 closed 7 years ago

mo22 commented 7 years ago

Hi, when parsing a formula like A5 or =A1+B1 or anything that does not start with a function I get an error:

node_modules/excel-formula/src/ExcelFormulaUtilities.js:1117
                        switch (currentFunctionOnStack.name.toLowerCase()) {
                                                      ^

TypeError: Cannot read property 'name' of undefined
joshbtn commented 7 years ago

Hi mo22,

I'll Check this out. Thanks.

joshbtn commented 7 years ago

This should now be fixed in the latest version 1.2.3