-
Notifications
You must be signed in to change notification settings - Fork 97
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
quickjs-libc: handle null prototype objects in console.log #632
Comments
After thinking about it for a few minutes, maybe what is needed is something like V8's Related to #630. |
@bnoordhuis Hello! back from limboland! repl already handles this via a local implementation of Our implementation of |
Hiya Charlie, welcome back.
No, V8 only has stubs for console.log and friends; it leaves it up to the embedder. A prime use case for ToDetailString is printing potentially poisoned/proxied objects (note that aforementioned awesome alliteration) like The motivation is that it should be easy for an embedder to - robustly! - print an object. |
That SGTM! |
edit: originates in
JS_ToCString()
but that's no excuse forconsole.log
to not show a human-readable representationThe text was updated successfully, but these errors were encountered: