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

Question: Accessing global variables after each script execution #366

Open
mustafaakin opened this issue Jan 26, 2023 · 1 comment
Open

Comments

@mustafaakin
Copy link

I'm trying to build Jupyter-notebook like application with v8 isolates. I'm writing it in Go, but I know it's not specfic to Go, but V8 isolates.

Consider I run the following code:

let users = [1,2,3]
let mappedUsers = users.map(a => a*3)

After this execution, how can I access these variables created globally, meaning I don't know the script contents so how can I iterate them properly? This might be a debugger case, and I might be confusing some use cases, but any pointers would be appreciated.

@silentiumNoxe
Copy link

exec js
return users
return mappedUsers

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