Enable Experimental JavaScript

Oct 13, 2014 at 5:03 PM
I am looking to toy with javascript proxies how can I set v8 to enable experimental javascript?
Coordinator
Oct 13, 2014 at 6:38 PM
Hello!

You'd have to make a small source code change and rebuild ClearScript.

For example, adding the following lines at the top of the V8IsolateImpl constructor should enable JavaScript proxies:
std::string flags("--harmony-proxies");
V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.length()));
Good luck!