-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
src: per-environment time origin value #43781
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
Conversation
Review requested:
|
7ac16b7
to
9c35bf1
Compare
According to https://html.spec.whatwg.org/#environment-settings-object, the timeOrigin is a per-environment value. Worker's timeOrigin is the time when the worker is created.
9c35bf1
to
bad53ff
Compare
Sorry about tagging the "author ready" label to the wrong PR. |
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
I'm unsure about the semversiness of this. worker_threads do not implement the WHATWG Workers spec, so I'm inclined to treat this as semver-major, but I'd be happy to consider a minor too. cc @addaleax |
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.
On semver: 🤷♀️ This feels like a bug fix but, honestly, unless there’s any urgency to get this out, why not make it semver-major?
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!
+1 to making this semver-major. |
This PR is semver-major so we need one more TSC approval. @joyeecheung would you mind taking a look at this again? Thank you! |
Landed in dabda03. Thank you for reviewing! |
According to https://html.spec.whatwg.org/#environment-settings-object,
the timeOrigin is a per-environment value. Worker's timeOrigin is the time
when the worker is created
(https://html.spec.whatwg.org/multipage/workers.html#set-up-a-worker-environment-settings-object).