V4: Throw the interpreter's TypeError from JIT-compiled lookups


The interpreter throws a TypeError naming the property before it runs
the lookup on a null or undefined base. The runtime functions the JIT
calls ran the lookup right away. Depending on what the lookup had
cached, that produced a different TypeError. Check first, like the
interpreter does.

Pick-to: 6.12 6.8
Change-Id: I10ea9794538964bafa4eaa6de4d9a181c7c569d6
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
commitaa36a9616e1b0975b8dd2f01eeee3969ec3f8e33
parentf167aa0677405fd02daea8cde8acd83b99b63d44
authorUlf Hermann <ulf.hermann@qt.io>
committerUlf Hermann <ulf.hermann@qt.io>
commit timeMon, 12 Oct 2026 12:28:17 +0000