[heycam/webidl] Should namespace objects have "length" and "name" own properties? (#949)

I can't find anything in https://heycam.github.io/webidl/#namespace-object to suggest that a namespace object should have `length` or `name` properties, but looking at namespace objects in implementations the results are mixed:
- `CSS.length` is 0 and `CSS.name` is "CSS" in Chrome, Firefox and Safari
- `console.length` is 0 and `console.name` is "console" in Firefox, but both are undefined in Chrome and Safari
- `WebAssembly.length` and `WebAssembly.name` are undefined in Chrome, Firefox and Safari

I don't think this has caused any problems, but it could be a future nuisance making it harder to introduce a new namespace which has a `name` member. (Wanting a `length` member seems less likely.)

With confirmation that these shouldn't be there, I could add negative tests for it.

-- 
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/issues/949

Received on Thursday, 21 January 2021 22:31:46 UTC