diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-07-31 15:27:59 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-08-01 13:18:02 +0000 |
commit | 81c5febf86339c141fb75bb2c3d166ac00b26f19 (patch) | |
tree | ddb45633d88f7cf6fa7ec5684943c965cc7ff30d /src/qml/jsruntime/qv4generatorobject.cpp | |
parent | 1ec824ed2f6b18705ecc4d9565f97ade5319da52 (diff) |
Fix naming of methods defined in object or class literals
Change-Id: I01b7774097a447520c85ae6766e6ca1162e921ba
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
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); |