We need to initialize the prototype correctly.
Change-Id: I466c132b5f6bd5761b5943aaea91ed811b82a8f7
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
#include <private/qv4runtime_p.h>
#include <private/qv4variantobject_p.h>
#include <private/qv4sequenceobject_p.h>
+#include <private/qv4objectproto_p.h>
#include <QtQml/qjsvalue.h>
#include <QtCore/qjsonarray.h>
{
this->v8Engine = QV8Engine::get(engine->publicEngine);
vtbl = &static_vtbl;
+ prototype = engine->objectPrototype;
m_destroy = engine->newIdentifier(QStringLiteral("destroy"));
m_toString = engine->newIdentifier(QStringLiteral("toString"));