Compile fixes for clang.

Change-Id: I691347f7cbd1023ce3c9c2e116d3ca5029f4a8e1
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Fix another failing assertion when running qqmlecmascript tests

Value::IsUInt32() and friends are not implemented. Port this built-in
stringArg() function over to QV4::Value.

Change-Id: I48674892c238473f1d70b2184249b0db377ae399
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Fix failing assertion in QObject bindings when catching exception

Add missing accept() to ensure the context is unwound correctly.

Change-Id: I42f9d17c8df25beb151675377d4395f1e2b35eef
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Fix crash in tst_qqmlecmascript::qtbug_22843()

Parse errors throw exceptions, which we must catch here. The caller will
check !m_program and return accordingly. This restores the previous
behavior also found in stable/dev.

Change-Id: Iecff94858ba12f13e581ec1664a092b3e9cd963d
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Fix failing assertion in tst_qqmlecmascript::singletonType

Don't try to call the singleton callback with the current scope but instead
execute it well-defined within the scope of the global context.

Change-Id: I6b59fad7d466a6070d1c748f909e1d8c0a1045ea
Reviewed-by: Lars Knoll <lars.knoll@digia.com>