From b6018a8167b23988542100312b4f2cd126c41700 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 29 Aug 2018 14:25:09 +0200 Subject: Initialize this to empty for derived constructors As per spec, this should be uninitialized in derived constructors, and the base constructor needs to get called exactly once. Change-Id: If31804e58d7ba62efde8fbf6cd852674f8da4495 Reviewed-by: Simon Hausmann --- src/qml/jit/qv4jithelpers.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/qml/jit/qv4jithelpers.cpp') diff --git a/src/qml/jit/qv4jithelpers.cpp b/src/qml/jit/qv4jithelpers.cpp index 9e057dd33d..7bac5d968d 100644 --- a/src/qml/jit/qv4jithelpers.cpp +++ b/src/qml/jit/qv4jithelpers.cpp @@ -70,16 +70,6 @@ ReturnedValue loadGlobalLookup(ExecutionEngine *engine, Function *f, int index) return l->globalGetter(l, engine); } -ReturnedValue loadSuperConstructor(ExecutionEngine *engine, const Value *t) -{ - const FunctionObject *f = t->as(); - if (!f || !f->isConstructor()) { - engine->throwTypeError(); - return Encode::undefined(); - } - return static_cast(t)->getPrototypeOf()->asReturnedValue(); -} - ReturnedValue toObject(ExecutionEngine *engine, const Value &obj) { if (obj.isObject()) -- cgit v1.2.3