Re: [heycam/webidl] Add namespaces (#121)

> +
> +
> +          <div class='example'>
> +            <p>
> +              The following <a class='dfnref' href='#dfn-idl-fragment'>IDL fragment</a> defines an
> +              <a class='dfnref' href='#dfn-namespace'>namespace</a>.
> +            </p>
> +            <x:codeblock language='idl'>namespace VectorUtils {
> +  double dotProduct(Vector x, Vector y);
> +  Vector crossProduct(Vector x, Vector y);
> +};</x:codeblock>
> +
> +            <p>
> +              An ECMAScript implementation would then expose a global property named
> +              <code>VectorUtils</code> which was a simple object (with prototype
> +              <a>%ObjectPrototype%</a>) with non-enumerable data properties for each declared

This is different from interfaces, where things _are_ enumerable, right?  Why the change?  Changing the behavior of `CSS` and `console` in this way may or may not be web-compatible... (yes, I just checked and all the stuff on `console` is enumerable in at least Safari, Chrome, and Firefox).

---
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/121/files/70ba6d9c213e2b05cf0d8b3ebd14ce9a4583f4c6#r63188483

Received on Friday, 13 May 2016 14:09:45 UTC