diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2016-10-22 05:24:20 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-11-26 09:17:36 +0000 |
commit | 8bf579d8d4feb13ca8651e98dd762b28483abe9e (patch) | |
tree | 7d779292848d742b427bc35a1723b1049e60ee99 /src/qml/jsruntime/qv4engine_p.h | |
parent | 9fdab4a3619f457f66716c74ea73355453557e52 (diff) |
Cleanup of builtin JS helpers for qmljs
Replace the hand-written gc and print functions with the print and gc
functions also used in Qml and QJSEngine. And while we're at it, this
also adds the console object.
Change-Id: Ia3a0ff24936b7ed5149cb689838b987f9178131e
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index a46066bde4..25d6fc1970 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -147,7 +147,7 @@ public: QQmlEngine *qmlEngine() const; #else // !V4_BOOTSTRAP QJSEngine *jsEngine() const { return v8Engine->publicEngine(); } - QQmlEngine *qmlEngine() const { return v8Engine->engine(); } + QQmlEngine *qmlEngine() const { return v8Engine ? v8Engine->engine() : nullptr; } #endif // V4_BOOTSTRAP QV8Engine *v8Engine; |