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

Ascync script no output #124

Open
anbuhckr opened this issue Nov 25, 2024 · 0 comments
Open

Ascync script no output #124

anbuhckr opened this issue Nov 25, 2024 · 0 comments

Comments

@anbuhckr
Copy link

I have small test

import STPyV8

test = '''
(async() => {
    window = {}
    window.opener = null
    window.opener.location
})()
'''

with STPyV8.JSContext() as ctx:
    ctx.eval(test) # no output

without async it has expected output TypeError: Cannot read properties of null (reading 'location')

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

1 participant