diff options
Diffstat (limited to 'src/qml/jsruntime/qv4generatorobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4generatorobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4generatorobject.cpp b/src/qml/jsruntime/qv4generatorobject.cpp index 8c3cd8b863..4a784bff35 100644 --- a/src/qml/jsruntime/qv4generatorobject.cpp +++ b/src/qml/jsruntime/qv4generatorobject.cpp @@ -235,10 +235,10 @@ ReturnedValue GeneratorObject::resume(ExecutionEngine *engine, const Value &arg) DEFINE_OBJECT_VTABLE(MemberGeneratorFunction); -Heap::FunctionObject *MemberGeneratorFunction::create(ExecutionContext *context, Function *function) +Heap::FunctionObject *MemberGeneratorFunction::create(ExecutionContext *context, Function *function, String *name) { Scope scope(context); - Scoped<GeneratorFunction> g(scope, context->engine()->memoryManager->allocate<MemberGeneratorFunction>(context, function)); + Scoped<GeneratorFunction> g(scope, context->engine()->memoryManager->allocate<MemberGeneratorFunction>(context, function, name)); ScopedObject proto(scope, scope.engine->newObject()); proto->setPrototypeOf(scope.engine->generatorPrototype()); g->defineDefaultProperty(scope.engine->id_prototype(), proto, Attr_NotConfigurable|Attr_NotEnumerable); |