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

Console log returning empty arrays #731

Closed
kjindal0802 opened this issue May 2, 2023 · 2 comments
Closed

Console log returning empty arrays #731

kjindal0802 opened this issue May 2, 2023 · 2 comments

Comments

@kjindal0802
Copy link

kjindal0802 commented May 2, 2023

I have a nested object like this {a:1, b: [{c:1},{c:2}]}

But evaluate function is printing {a:1, b: [{}, {}]}

@iamstolis
Copy link
Member

I am sorry, I don't understand what do you mean by "evaluate function is printing". Could you, please, provide exact code/command line of the corresponding test-case.

@kjindal0802
Copy link
Author

Hi @iamstolis , I was using the graalVM engine and context to print nested objects but a nested array of objects were getting printed as empty. Fixed that one with a recursive approach.

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

No branches or pull requests

2 participants