Related to #1164: fix errors pushed as extra func arguments - #2350
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2350 +/- ##
=======================================
Coverage 99.62% 99.62%
=======================================
Files 32 32
Lines 26969 26971 +2
=======================================
+ Hits 26867 26869 +2
Misses 53 53
Partials 49 49
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
xuri
requested changes
Jul 15, 2026
xuri
approved these changes
Jul 15, 2026
xuri
left a comment
Member
There was a problem hiding this comment.
Thanks for your great work! I've made some changes based on your code branch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Details
Fix calculation error propagation in function argument expressions
Description
This fixes incorrect error propagation in
prepareEvalInfixExpwhen an arithmetic error (e.g.#DIV/0!) occurs while evaluating an expression inside a function argument.Previously, when
calculate()returned an error, the error was pushed toargsStack(the function's argument list) instead ofopfdStack(the operand stack of the current expression). This caused each failed operation to be counted as an additional argument of the enclosing function. For example,IF(C1=0,0,A1/C1+B1/C1)withC1=0would fail with "IF accepts at most 3 arguments".Related Issue
Related to recent PR #2348 and also related to #2344
Motivation and Context
Formulas like =IF(C1=0,0,A1/C1+B1/C1) would fail while still being a valid excel formula.
How Has This Been Tested
Added unit test
Types of changes
Checklist