Re: [w3ctag/design-reviews] User Timing (#642)

You're talking about `detail` which is potentially [set to null](https://www.w3.org/TR/user-timing-3/#:~:text=Otherwise%2C%20set%20it%20to%20null) (in 3.1.3.9.2)?
If so, my read is that [serialize](https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializeinternal) returns a `{ [[Type]]: "primitive", [[Value]]: null }` and then [deserialize](https://html.spec.whatwg.org/multipage/structured-data.html#structureddeserialize) sets the value to null in step 5.

At the same time, we could add a null check here if it makes things more readable.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/642#issuecomment-910178800

Received on Wednesday, 1 September 2021 11:10:05 UTC