Why QScriptValue and not QVariant?
I've been browsing through the QScript code and wondered why script values are contained to their own type (QScriptValue) which has pretty much the same underlying machinery as QVariant, whereas it would be trivial to write QVariant-aware wrapper types for the ECMAScript types (Date, RegEx, etc) and use these.
Are there implementation concerns I'm not aware of that precludes using variants? Is it faster to avoid the QVariant infrastructure? Am I missing something?