diff options
author | Alexandra Cherdantseva <neluhus.vagus@gmail.com> | 2019-02-18 14:57:27 +0300 |
---|---|---|
committer | Konstantin Tokarev <annulen@yandex.ru> | 2019-04-17 15:46:36 +0000 |
commit | 484e9de6d86d011bd349890cba87a25554b0f672 (patch) | |
tree | fbae02a39db4aa73557d9c70ffd120d678c508bb /src/scripttools/debugging/qscriptdebugoutputwidget.cpp | |
parent | ba51b7a53420a5de576f6d07b2f4feab5ea4d21a (diff) | |
download | qtscript-484e9de6d86d011bd349890cba87a25554b0f672.tar.gz |
Fix thisObject() of QScriptable argument for String(), etc
When `String(object)` is evaluated, and `object` is a QObject or some
custom object with native prototype, then `object.toString()` will be
called with incorrect `this`. This also applies for Number(), Boolean()
and other built-in constructors.
Change-Id: I0219f0e119c1e29d80e4c0f856421352715e9e6e
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'src/scripttools/debugging/qscriptdebugoutputwidget.cpp')
0 files changed, 0 insertions, 0 deletions