[whatwg/webidl] Throw TypeError if `[Replaceable]` setter fails to reconfigure the property (PR #1360)

This change aligns the spec with WebKit and Gecko, favouring throwing an error rather than silent failure, which is more idiomatic: all ECMA-262 built-ins are strict mode code.

<!--
Thank you for contributing to the Web IDL Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.
-->

- [x] At least two implementers are interested (and none opposed):
   * Implemented in WebKit since 
   * Gecko
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * TODO
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: TODO

(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/webidl/pull/1360

-- Commit Summary --

  * Throw TypeError if [Replaceable] setter fails to reconfigure the property

-- File Changes --

    M index.bs (2)

-- Patch Links --

https://github.com/whatwg/webidl/pull/1360.patch
https://github.com/whatwg/webidl/pull/1360.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1360
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1360@github.com>

Received on Sunday, 10 September 2023 20:37:12 UTC