diff options
Diffstat (limited to 'src/qml/jsruntime/qv4module.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4module.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4module.cpp b/src/qml/jsruntime/qv4module.cpp index 08a1900383..26bef9cd37 100644 --- a/src/qml/jsruntime/qv4module.cpp +++ b/src/qml/jsruntime/qv4module.cpp @@ -112,15 +112,15 @@ void Module::evaluate() ExecutionEngine *v4 = engine(); Function *moduleFunction = unit->runtimeFunctions[unit->data->indexOfRootFunction]; - CppStackFrame frame; - frame.init(v4, moduleFunction, nullptr, 0); + JSTypesStackFrame frame; + frame.init(moduleFunction, nullptr, 0); frame.setupJSFrame(v4->jsStackTop, Value::undefinedValue(), d()->scope, Value::undefinedValue(), Value::undefinedValue()); - frame.push(); + frame.push(v4); v4->jsStackTop += frame.requiredJSStackFrameSize(); - auto frameCleanup = qScopeGuard([&frame]() { - frame.pop(); + auto frameCleanup = qScopeGuard([&frame, v4]() { + frame.pop(v4); }); Moth::VME::exec(&frame, v4); } |