$ node --harmony_collections -pe '[new WeakMap(), new Map()]'
[ {}, {} ]

There's a lot of good stuff under `node --v8-options`.

On Fri, Dec 21, 2012 at 1:07 PM, Mark Hahn <[email protected]> wrote:
> I've run into a need for both weak refs and maps in my new app.  I
> need these in node and in a browser (which can be limited to chrome).
>
> node-weak looks good for the node ref solution.  I know weak-maps are
> in V8, but are they supported in node?
>
> I'd also appreciate any comments on the state of weak refs/maps in
> chrome.  I know maps are supported with a command-line switch but I
> can't find anything about refs.
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: 
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to