- From: Boris Zbarsky <notifications@github.com>
- Date: Fri, 13 May 2016 10:17:00 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc:
Received on Friday, 13 May 2016 17:17:35 UTC
> +
> +
> + <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
`for-in` is the case that worries me, compat-wise.
---
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#r63218628
Received on Friday, 13 May 2016 17:17:35 UTC