On Sun 04 May 2014 20:15, Jane Chen <[email protected]> writes:

> I found the following documentation for Promise in version 3.24's v8.h:
>
> /**
> * An instance of the built-in Promise constructor (ES6 draft).
> * This API is experimental. Only works with --harmony flag.
> */
>
> How do I enable the harmony flag in v8?

If you run V8 (or node, etc) from the command line, pass --harmony on
the command line.  In chrome there is a checkbox to enable experimental
JavaScript features in chrome://flags.  There is also the
SetFlagsFromString API if you are embedding V8.

Regards,

Andy

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to