{"action":"created","issue":{"url":"https://api.github.com/repos/tc39/proposal-weakrefs/issues/39","repository_url":"https://api.github.com/repos/tc39/proposal-weakrefs","labels_url":"https://api.github.com/repos/tc39/proposal-weakrefs/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/tc39/proposal-weakrefs/issues/39/comments","events_url":"https://api.github.com/repos/tc39/proposal-weakrefs/issues/39/events","html_url":"https://github.com/tc39/proposal-weakrefs/issues/39","id":375074824,"node_id":"MDU6SXNzdWUzNzUwNzQ4MjQ=","number":39,"title":"Clarification / spec text correction wrt when is the \"KeepDuringJob\" Set cleared?","user":{"login":"marjakh","id":25407494,"node_id":"MDQ6VXNlcjI1NDA3NDk0","avatar_url":"https://avatars1.githubusercontent.com/u/25407494?v=4","gravatar_id":"","url":"https://api.github.com/users/marjakh","html_url":"https://github.com/marjakh","followers_url":"https://api.github.com/users/marjakh/followers","following_url":"https://api.github.com/users/marjakh/following{/other_user}","gists_url":"https://api.github.com/users/marjakh/gists{/gist_id}","starred_url":"https://api.github.com/users/marjakh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marjakh/subscriptions","organizations_url":"https://api.github.com/users/marjakh/orgs","repos_url":"https://api.github.com/users/marjakh/repos","events_url":"https://api.github.com/users/marjakh/events{/privacy}","received_events_url":"https://api.github.com/users/marjakh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-29T15:30:50Z","updated_at":"2018-10-30T07:48:07Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Can it be cleared between microtasks?\r\n\r\nThe current spec text talks about associating the set with Job (i.e.,microtask?). If we implement it like this, the WeakRef can be cleared between microtasks.\r\n\r\nOn the other hand, the slides (slide 17) say \"A program cannot observe a target getting reclaimed within the execution of a job (turn of the event loop)\" (not microtask queue).\r\n\r\nE.g., \r\n\r\nPromise.resolve().then(() => { wr = wf.makeRef(...); }).then(() => { wr.deref(); });\r\n\r\n... can the deref() now return undefined?"},"comment":{"url":"https://api.github.com/repos/tc39/proposal-weakrefs/issues/comments/434202597","html_url":"https://github.com/tc39/proposal-weakrefs/issues/39#issuecomment-434202597","issue_url":"https://api.github.com/repos/tc39/proposal-weakrefs/issues/39","id":434202597,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDIwMjU5Nw==","user":{"login":"bmeurer","id":815988,"node_id":"MDQ6VXNlcjgxNTk4OA==","avatar_url":"https://avatars3.githubusercontent.com/u/815988?v=4","gravatar_id":"","url":"https://api.github.com/users/bmeurer","html_url":"https://github.com/bmeurer","followers_url":"https://api.github.com/users/bmeurer/followers","following_url":"https://api.github.com/users/bmeurer/following{/other_user}","gists_url":"https://api.github.com/users/bmeurer/gists{/gist_id}","starred_url":"https://api.github.com/users/bmeurer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmeurer/subscriptions","organizations_url":"https://api.github.com/users/bmeurer/orgs","repos_url":"https://api.github.com/users/bmeurer/repos","events_url":"https://api.github.com/users/bmeurer/events{/privacy}","received_events_url":"https://api.github.com/users/bmeurer/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T07:48:07Z","updated_at":"2018-10-30T07:48:07Z","author_association":"NONE","body":"@hannespayer just mentioned that there was agreement earlier this year, that the `KeepDuringJob` set is cleared **after** all the microtasks are processed. So in terms of the HTML spec, that means we introduce a new step into the [perform a microtask checkpoint](https://html.spec.whatwg.org/multipage/webappapis.html#perform-a-microtask-checkpoint) algorithm right before or after the `Cleanup Indexed Database transactions` step."}}
{"actor":{"display_login":"bmeurer"}}