Re: [heycam/webidl] Named properties object: allow symbols in [[DefineOwnProperty]] and [[Delete]] (#963)

@shvaikalesh commented on this pull request.



>  
-    1.  Return <emu-val>false</emu-val>.
+    1.  If [$Type$](|P|) is String, then return <emu-val>false</emu-val>.
+    1.  Otherwise, return [=?=] [$OrdinaryDelete$](|O|, |P|).

Unlike in [legacy platform objects](https://heycam.github.io/webidl/#legacy-platform-object-delete), we can call [`OrdinaryDelete`](https://tc39.es/ecma262/#sec-ordinarydelete) instead of reimplementing it, as it's reachable only for own symbol properties. I mildly prefer calling ordinary methods so the implementations can match the spec more closely.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/963#pullrequestreview-609298555

Received on Thursday, 11 March 2021 00:35:13 UTC