[w3c/push-api] Check for null data when constructing a PushEvent (PR #439)

After Web IDL conversion, the nullable `data` member is present with a default of `null`. Test for null to distinguish omitted data from a supplied empty string or buffer.


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://pr-preview.w3.org/JinDX/push-api/pull/439.html" title="Last updated on Nov 15, 2026, 7:28 AM UTC (144deee)">Preview</a> | <a href="https://pr-preview.w3.org/w3c/push-api/439/a236755...JinDX:144deee.html" title="Last updated on Nov 15, 2026, 7:28 AM UTC (144deee)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/push-api/pull/439

-- Commit Summary --

  * Check for null data when constructing a PushEvent

-- File Changes --

    M index.html (2)

-- Patch Links --

https://github.com/w3c/push-api/pull/439.patch
https://github.com/w3c/push-api/pull/439.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/push-api/pull/439
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/push-api/pull/439@github.com>

Received on Sunday, 15 November 2026 07:29:11 UTC