[wpt-sync] Sync PR 34157 - Add test to confirm calling Request constructor without `new` throws …
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox103 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 34157 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/34157
Details from upstream follow.
Jake Champion <me@jakechampion.name> wrote:
Add test to confirm calling Request constructor without
newthrows …This adds tests which confirm that calling many constructors as ordinary functions will throw an error.
This also adds some more error testing scenarios to SharedWorker which looked like it was missing these tests.
This is similar to my other Pull-Request which adds this same test scenario to Request -> https://github.com/web-platform-tests/wpt/pull/34146
This is the part of WebIDL that is being exercised by these tests:
If the interface is declared with a constructor operation, then the interface object can be called as a constructor to create an object that implements that interface. Calling that interface as a function will throw an exception.
https://webidl.spec.whatwg.org/#interface-object
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 2•3 years ago
|
||
| Assignee | ||
Comment 4•3 years ago
|
||
Description
•