If startOrMeasureOptions is a PerformanceMeasureOptions object:
Let record be the result of calling the StructuredSerialize algorithm on startOrMeasureOptions's detail.
Set entry's detail to the result of calling the StructuredDeserialize algorithm on record and the current realm.
Otherwise, set it to null.
`
This does not handle the case where startOrMeasureOptions is a PerformanceMeasureOptions but detail is not present. From the tests, it seems like the desired behavior is to set entry's detail to null here.
This can be clarified by changing 9.1. from:
If startOrMeasureOptions is a PerformanceMeasureOptions object:
to
If startOrMeasureOptions is a PerformanceMeasureOptions object and its detail member is present:
Step #9 of https://w3c.github.io/user-timing/#dom-performance-measure states:
`
This does not handle the case where
startOrMeasureOptions is a PerformanceMeasureOptions
butdetail
is not present. From the tests, it seems like the desired behavior is to set entry's detail to null here.This can be clarified by changing 9.1. from:
If startOrMeasureOptions is a PerformanceMeasureOptions object:
to
If startOrMeasureOptions is a PerformanceMeasureOptions object and its detail member is present: