Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling .siblingsLeft on an undefined statement hangs execution. #109

Open
lm-sousa opened this issue Oct 20, 2022 · 1 comment
Open

Calling .siblingsLeft on an undefined statement hangs execution. #109

lm-sousa opened this issue Oct 20, 2022 · 1 comment
Labels

Comments

@lm-sousa
Copy link
Member

The following code hangs execution on the Clava Web Tool.

println(
    $scope.lastStatement.siblingsLeft[0].code
);

Curiously, $scope.lastStatement is undefined. One would expect that calling a method on an undefined object would result in an exception being thrown. However that is not the case here. Execution continues indefinitely.

@lm-sousa lm-sousa added the bug label Oct 20, 2022
@lm-sousa
Copy link
Member Author

I might have found a different explanation:
image

Note the lack of a payload on this request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant