Skip to content

str(JsProxy) raising TypeError #4569

Answered by hoodmane
CNSeniorious000 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the report! We probably should fall back to Object.prototype.toString.call in this case. That would render it as '[object Module]' which isn't useful persay but at least doesn't throw. @ryanking13 wdyt?

To avoid the request, a better repro is:

from pyodide.code import run_js

mod = await run_js("import('data:text/javascript,')")
print(mod)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@CNSeniorious000
Comment options

@ryanking13
Comment options

Answer selected by CNSeniorious000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants