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

[Call] calling an undefined method does not throw #510

Closed
croraf opened this issue Jun 18, 2020 · 2 comments · Fixed by #561
Closed

[Call] calling an undefined method does not throw #510

croraf opened this issue Jun 18, 2020 · 2 comments · Fixed by #561
Labels
bug Something isn't working execution Issues or PRs related to code execution
Milestone

Comments

@croraf
Copy link
Contributor

croraf commented Jun 18, 2020

To Reproduce

'bar'.foo()

or

let bar = {}
bar.foo()

Expected behavior
Should throw TypeError
TypeError: 'bar'.foo is not a function
TypeError: bar.foo is not a function

Instead undefined is returned.

@croraf croraf added the bug Something isn't working label Jun 18, 2020
@HalidOdat
Copy link
Member

Could #501 fix this issue?

@HalidOdat HalidOdat added the execution Issues or PRs related to code execution label Jun 18, 2020
@croraf
Copy link
Contributor Author

croraf commented Jun 18, 2020

Negative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working execution Issues or PRs related to code execution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants