See http://doc.trolltech.com/latest/qscriptengine.html#newVariant
There should also be corresponding methods QScriptValue::isVariant() and QScriptValue::toVariant().
Porting QtScript API over JSC C API will not be continued.