aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4vme_moth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4vme_moth.cpp')
-rw-r--r--src/qml/jsruntime/qv4vme_moth.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4vme_moth.cpp b/src/qml/jsruntime/qv4vme_moth.cpp
index 4f0f9f27ec..39eaa3a25c 100644
--- a/src/qml/jsruntime/qv4vme_moth.cpp
+++ b/src/qml/jsruntime/qv4vme_moth.cpp
@@ -936,6 +936,16 @@ QV4::ReturnedValue VME::interpret(CppStackFrame *frame, ExecutionEngine *engine,
}
MOTH_END_INSTR(ConvertThisToObject)
+ MOTH_BEGIN_INSTR(LoadSuperConstructor)
+ const Value *f = &stack[CallData::Function];
+ if (!f->isFunctionObject()) {
+ engine->throwTypeError();
+ } else {
+ acc = static_cast<const Object *>(f)->getPrototypeOf()->asReturnedValue();
+ }
+ CHECK_EXCEPTION;
+ MOTH_END_INSTR(LoadSuperConstructor)
+
MOTH_BEGIN_INSTR(ToObject)
acc = ACC.toObject(engine)->asReturnedValue();
CHECK_EXCEPTION;