Commit 3dbc7a72 authored by Erik Verbruggen's avatar Erik Verbruggen Committed by The Qt Project
Browse files

Fix return type checks in test.


When calling into JavaScript, the specific type of the return value can
differ if that return value is a number. This is not only the case for
non-integral numbers, or numbers that do not fit into the (signed)
integer range, but it also depends on which optimizations are run. to
check if the return value is of a number type, use this method instead
of checking against a specific userType.

Change-Id: I0464c062bd617c83b7a1e887f7853aa5cd8f43e4
Reviewed-by: default avatarSimon Hausmann <simon.hausmann@digia.com>
parent 49fad776
Branches
Tags
Showing with 16 additions and 4 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment