%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
'use strict'; const common = require('../common'); const { strictEqual, throws, equal } = require('assert'); // Manually converted from https://github.com/web-platform-tests/wpt/blob/master/dom/events/CustomEvent.html // in order to define the `document` ourselves { const type = 'foo'; const target = new EventTarget(); target.addEventListener(type, common.mustCall((evt) => { strictEqual(evt.type, type); })); target.dispatchEvent(new Event(type)); } { throws(() => { new Event(); }, TypeError); } { const event = new Event('foo'); equal(event.type, 'foo'); equal(event.bubbles, false); equal(event.cancelable, false); equal(event.detail, null); }