()
| 19406 | } |
| 19407 | }; |
| 19408 | Object.defineProperties(EventSource, constantsPropertyDescriptors); |
| 19409 | Object.defineProperties(EventSource.prototype, constantsPropertyDescriptors); |
| 19410 | Object.defineProperties(EventSource.prototype, { |
| 19411 | close: kEnumerableProperty, |
| 19412 | onerror: kEnumerableProperty, |
| 19413 | onmessage: kEnumerableProperty, |
| 19414 | onopen: kEnumerableProperty, |
| 19415 | readyState: kEnumerableProperty, |
| 19416 | url: kEnumerableProperty, |
| 19417 | withCredentials: kEnumerableProperty |
| 19418 | }); |
| 19419 | webidl.converters.EventSourceInitDict = webidl.dictionaryConverter([ |
| 19420 | { |
| 19421 | key: "withCredentials", |
| 19422 | converter: webidl.converters.boolean, |
| 19423 | defaultValue: () => false |
| 19424 | }, |
| 19425 | { |
| 19426 | key: "dispatcher", |
| 19427 | // undici only |
| 19428 | converter: webidl.converters.any |
| 19429 | } |
| 19430 | ]); |
| 19431 | module.exports = { |
| 19432 | EventSource, |
no test coverage detected