diff options
author | Ulf Hermann <[email protected]> | 2022-09-27 14:13:57 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2022-09-29 18:19:06 +0200 |
commit | 4bc3f64b0edc5f097ca7cad4a89a535db67aa266 (patch) | |
tree | 7aceecf29a4347167db3ce1572c7bf5e456f6272 /src/qml/jsruntime/qv4runtime.cpp | |
parent | 435d587e74ee7a726ccc29e137cd0032a16383b2 (diff) |
V4: Use an enum to categorize functions and rename aotFunction
We want to use the aotFunction member also for typed JavaScript
functions.
Change-Id: Iad6d12ebed3ad3069832484137ed8e4d9e7a7cf4
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4runtime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp index f1f26ee53a..01ee03bddc 100644 --- a/src/qml/jsruntime/qv4runtime.cpp +++ b/src/qml/jsruntime/qv4runtime.cpp @@ -1039,7 +1039,7 @@ static Object *getSuperBase(Scope &scope) if (CallContext *c = ctx->asCallContext()) { f = c->d()->function; QV4::Function *fn = f->function(); - if (fn && !fn->isArrowFunction() && !fn->isEval) + if (fn && !fn->isArrowFunction() && fn->kind != Function::Eval) break; } ctx = ctx->d()->outer; |