[Development] QML, v8 and freezing the global object

Harri Porten porten at froglogic.com
Thu Oct 11 17:36:55 CEST 2012

On Thu, 11 Oct 2012, Thomas McGuire wrote:

> Could we maybe simple get rid of object freezing, and not freeze the global
> object?
> What would the consequences of that be, anything bad? I am the opinion that if
> the user wants to override the "console" object, let him. Maybe there were
> other reasons for freezing the global object though?

My guesses for a possible difference: performance of script execution. 
Once the global object is frozen the JIT compiler can make certain 
assumptions that otherwise are not possible.

Security might be another factor.


More information about the Development mailing list