diff --git a/ets2panda/compiler/lowering/ets/objectLiteralLowering.cpp b/ets2panda/compiler/lowering/ets/objectLiteralLowering.cpp index d0f415917df8b09997b5b5bff31639751f60d695..031e672607510915ded2af816de69b6c4031d67c 100644 --- a/ets2panda/compiler/lowering/ets/objectLiteralLowering.cpp +++ b/ets2panda/compiler/lowering/ets/objectLiteralLowering.cpp @@ -186,7 +186,7 @@ static void GenerateNewStatements(public_lib::Context *ctx, ir::ObjectExpression checker::Signature *sig = classType->ConstructSignatures().front(); for (auto param : sig->Params()) { ES2PANDA_ASSERT(param->Declaration() != nullptr); - ctorArgumentsMap.emplace(param->Declaration()->Name(), nullptr); + ctorArgumentsMap.emplace(param->Declaration()->Name(), allocator->New()); } }