Skip to content

Ascync script no output #124

@anbuhckr

Description

@anbuhckr

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions