-
Notifications
You must be signed in to change notification settings - Fork 316
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
feat: Add bindings for {Dis,}allowJavascriptExecutionScope
#862
Conversation
@piscisaureus PTAL |
This is not ready for merging – the generics probably need changes, and I didn't add tests to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes LGTM, I don't really have complaints. Perhaps @piscisaureus should look it over.
Looking good so far. |
It should be possible to create a The main reason why I'm allowing creating a |
9010cc1
to
933ed1a
Compare
Are there any blockers for this? |
Rebasing and a thorough review from @piscisaureus I guess. But I haven't looked at this PR in over a year, and scopes are complicated. |
933ed1a
to
bdcbe77
Compare
Rebased. Since this PR is one of the blockers for denoland/deno#12067, which is lately gaining prominence due to Deno KV, it would be good to put some more work into this. However, I don't fully understand the details of how scopes are meant to work together, in terms of creating scopes from other scopes and as/deref, and my understanding of those details has certainly not grown in the year that this PR has been open. So a lot of help from @piscisaureus would probably be needed before this PR can be landed. |
Closing because it's very old. Please open a new PR if you want to continue this. |
I last rebased this PR two months ago. The single merge conflict is trivial, and after resolving it, the tests pass. Is that too old, really? The issue this PR fixes is a main blocker for structured cloning and serializing web APIs, which I would have assumed is of high relevance to the Deno company lately because of Deno KV. But recently I haven't seen much interest from Deno in getting this PR landed, even though at this point the ball was on Deno's court, see #862 (comment). At this point, I don't have the motivation to reopen this. If anyone does, feel free to take this code, and I would appreciate it if you would ping me in the resulting PR. |
Hey @andreubotella, sorry for the miscommunication. I'm still very interested in landing this PR - sorry I hadn't picked it up earlier, it slipped in my backlog. The only thing Bert wanted before merging this one was an update to |
{Dis,}allowJavascriptExecutionScope
{Dis,}allowJavascriptExecutionScope
@andreubotella I added more test cases in EDIT: I just need to update the comment in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you @andreubotella
I've got the raw functionality working, but I'm not sure at all about the API and the lifetimes/generics. For the time being I've managed to patch something that works for the
ValueDeserializer
use case, but I'm not sure at all that it's any good.Closes #833.