aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4objectproto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4objectproto.cpp')
-rw-r--r--src/qml/jsruntime/qv4objectproto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4objectproto.cpp b/src/qml/jsruntime/qv4objectproto.cpp
index 962d9bbee5..090bc32c93 100644
--- a/src/qml/jsruntime/qv4objectproto.cpp
+++ b/src/qml/jsruntime/qv4objectproto.cpp
@@ -489,7 +489,7 @@ ReturnedValue ObjectPrototype::method_defineGetter(CallContext *ctx)
if (!o) {
if (!ctx->d()->callData->thisObject.isUndefined())
return Encode::undefined();
- o = ctx->d()->engine->globalObject;
+ o = ctx->d()->engine->globalObject();
}
Property pd;
@@ -517,7 +517,7 @@ ReturnedValue ObjectPrototype::method_defineSetter(CallContext *ctx)
if (!o) {
if (!ctx->d()->callData->thisObject.isUndefined())
return Encode::undefined();
- o = ctx->d()->engine->globalObject;
+ o = ctx->d()->engine->globalObject();
}
Property pd;