Forum Discussion
Anton_A
14 years agoOccasional Contributor
Robert, Jared, thanks for your replies!
Anyway that doesn't help me because i use recursion in this code and when it tries to obtain control under not existed node it throws exception (as you may see in the attach - without_try_catch.JPG). The catch block is actually achieved and stub object assigned to node as well (as you may see in the attach - error_catch.JPG).You can also see that I log warning in catch block and this action performs successfully. But function doesn't return this stub object in finally block (i've changed a bit the function for better show the issue, please see - return_undefined.JPG). Moreover, when i add finally block to the function and now debugging it's assigned wrong node in finally block (see wrong_object_assigned.JPG ). I wonder how this happens if catch block were achieved. All screenshots were made consequentially in single debug action. Thanks in advance, Anton.
Anyway that doesn't help me because i use recursion in this code and when it tries to obtain control under not existed node it throws exception (as you may see in the attach - without_try_catch.JPG). The catch block is actually achieved and stub object assigned to node as well (as you may see in the attach - error_catch.JPG).You can also see that I log warning in catch block and this action performs successfully. But function doesn't return this stub object in finally block (i've changed a bit the function for better show the issue, please see - return_undefined.JPG). Moreover, when i add finally block to the function and now debugging it's assigned wrong node in finally block (see wrong_object_assigned.JPG ). I wonder how this happens if catch block were achieved. All screenshots were made consequentially in single debug action. Thanks in advance, Anton.
Related Content
- 5 years ago
Recent Discussions
- 2 days ago