Enable chromium flag Experimental Javascript and window.gc does not work

2,700 views
Skip to first unread message

Chamal De Silva

unread,
May 22, 2013, 12:37:06 AM5/22/13
to chromium...@chromium.org
Hi,

I enabled flag "Enable Experimental Javascript" in chrome trunk build(Version 29.0.1514.0 (201417)).
But now window.gc() in javascript code does not work.

It gives this error "Uncaught TypeError: Object [object global] has no method 'gc'" when window.gc() is run.

Is window.gc() removed or renamed?

Thanks.

Torne (Richard Coles)

unread,
May 22, 2013, 6:17:13 AM5/22/13
to chamal....@gmail.com, Chromium-discuss
I don't think window.gc() does anything on Chrome anyway, unless you run the browser with special flags that change V8's behaviour.


--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss
 
 
 

Chamal De Silva

unread,
May 22, 2013, 10:37:27 PM5/22/13
to chromium...@chromium.org, chamal....@gmail.com, to...@chromium.org
I run the browser with this flag --js-flags="--expose-gc" which enables window.gc. But after enabling experimental javascript flag it does not work.

Jakob Kummerow

unread,
May 23, 2013, 4:59:24 AM5/23/13
to chamal....@gmail.com, Chromium-discuss, to...@chromium.org
Enabling experimental JavaScript via chrome://flags overrides any custom --js-flags="..." on the command line. You can only have the one or the other.


On Thu, May 23, 2013 at 4:37 AM, Chamal De Silva <chamal....@gmail.com> wrote:
I run the browser with this flag --js-flags="--expose-gc" which enables window.gc. But after enabling experimental javascript flag it does not work.

Chamal De Silva

unread,
May 23, 2013, 10:26:55 AM5/23/13
to chromium...@chromium.org
Running chrome with these command line flags seems to enable both window.gc and experimental javascript.
chrome --js-flags="--expose-gc --harmony"
Reply all
Reply to author
Forward
0 new messages