w3c / w3c/user-timing

It isn't defined what happens if StructuredSerialize in measure() throws an exception

Open
#91 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Bikeshed
Stars
31
Forks
16
PR merge metrics
No merged PRs in 30d

Description

I think something similar to https://html.spec.whatwg.org/multipage/web-messaging.html#dom-broadcastchannel-postmessage could be done also in user-timing spec. See step 3 and its "Rethrow any exceptions."

https://w3c.github.io/user-timing/#dfn-performancemark-constructor has similar issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the user-timing definitions for measure() and the PerformanceMark constructor, then compare their StructuredSerialize behavior with the BroadcastChannel postMessage steps linked in the issue. Clarify how exceptions are handled in both cases and update the specification so the behavior is explicitly defined.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.