Hello all, I have a question about recent introduction of "virtual" functions in JavaScript engine.
Now objects have both virtualCallAsConstructor function and callAsConstructor functions. Unfortunately, distinction between those is a little bit unclear to me. Is virtualCallAsConstructor is actually what is called when object is created on JS side (via new call)? Shall virtuallCallAsConstructor now be used when an JS Object is needed to be created from C++ side? I'm also a little bit puzzled about signature: static ReturnedValue virtualCallAsConstructor(const FunctionObject *f, const Value *argv, int argc, const Value *); What is the last const Value*? Shall I pass args as last the last arguments? Sincerely yours, Valery Kotov
_______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development