This gets most of qqmlecmascript to pass with aggressive and
exact garbage collection.
Change-Id: I93ecbfe55f62af68227cdf3b1ec2bd066f1cbdef
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
vtbl = &static_vtbl;
type = Type_ArgumentsObject;
- Scope scope(context);
ExecutionEngine *v4 = context->engine;
+ Scope scope(v4);
+ ScopedObject protectThis(scope, this);
if (context->strictMode) {
internalClass = v4->strictArgumentsObjectClass;
vtbl = &static_vtbl;
Scope scope(v4);
+ ScopedObject protectThis(scope, this);
// Set all the enums from the "Qt" namespace
const QMetaObject *qtMetaObject = StaticQtMetaObject::get();
QV4::ConsoleObject::ConsoleObject(ExecutionEngine *v4)
: Object(v4)
{
+ QV4::Scope scope(v4);
+ QV4::ScopedObject protectThis(scope, this);
+
defineDefaultProperty(QStringLiteral("debug"), method_log);
defineDefaultProperty(QStringLiteral("log"), method_log);
defineDefaultProperty(QStringLiteral("info"), method_log);