From 6d8dbba4624c8a453ba13ff009f011f2946422bb Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Sat, 30 Jun 2018 19:19:18 +0200 Subject: Add support for super calls Implement super call support for class constructor functions. Change-Id: I3c64276234689cf4f644b095e0fc8ca1c634ac53 Reviewed-by: Simon Hausmann --- src/qml/compiler/qv4bytecodehandler.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qml/compiler/qv4bytecodehandler.cpp') diff --git a/src/qml/compiler/qv4bytecodehandler.cpp b/src/qml/compiler/qv4bytecodehandler.cpp index 3e683cc8bf..b96c04dc01 100644 --- a/src/qml/compiler/qv4bytecodehandler.cpp +++ b/src/qml/compiler/qv4bytecodehandler.cpp @@ -364,6 +364,9 @@ std::vector ByteCodeHandler::collectLabelsInBytecode(const char *code, uint COLLECTOR_BEGIN_INSTR(ConvertThisToObject) COLLECTOR_END_INSTR(ConvertThisToObject) + COLLECTOR_BEGIN_INSTR(LoadSuperConstructor) + COLLECTOR_END_INSTR(LoadSuperConstructor) + COLLECTOR_BEGIN_INSTR(ToObject) COLLECTOR_END_INSTR(ToObject) -- cgit v1.2.3