Commit Graph

3 Commits

Author SHA1 Message Date
Simon Hausmann 461c1ef24e Fix thisObject for all builtin function calls
Even when doing

    var v = Object.prototype.valueOf;
    v();

the thisObject must not be converted to the global object automatically, i.e.
remain null. We previously implemented this lack of conversion for apply() and
call(), but it does in fact apply to all built-in functions.

Consequently we can get rid of callDirect and the virtual maybeAdjustThisObject
function and instead just do the "tweak" with the help of a little boolean.

Change-Id: I93bc37f4c6e896d6dcf169aa74953b0e460312ce
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2013-01-22 16:14:35 +01:00
Lars Knoll 8d3c58600a Move qmljs_object.* to qv4object.*
Change-Id: I846958875eaa2feae51e3a70290a197dd40bcb12
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
2013-01-21 22:54:46 +01:00
Lars Knoll f6f6f5d1d3 Further split up qv4ecmaobjects and qmljs_objects.
Change-Id: I3dbcf7f9209a2c8ff601b64ef722640181dbb6f8
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
2013-01-21 22:52:52 +01:00