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

I was testing in Chrome 87. In Chrome Canary, I see that `CSS.length` and `CSS.name` are indeed both undefined. And `typeof CSS` has changed from "function" to "object". This was a recent fix, perhaps in https://chromium-review.googlesource.com/c/chromium/src/+/2463092. @yuki3 was that an intentional effect of that CL?

Regardless, sounds like we should have tests for each of the namespace objects to ensure they're objects, not functions. Checking that they don't have `length` and `name` is then a bit redundant, but maybe we should.

-- 
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#issuecomment-765314471

Received on Friday, 22 January 2021 10:41:45 UTC