History

V8 fixes

ksuprynowicz committed 3 years ago

Commit 5cf32a91 parent f65e72c14 files · +140 −15Browse files

Showing the changes to plugins/JSAPIExample/src/JSAPIExample.cpp (1 of 14 files). Show all

Unified · Split

plugins/JSAPIExample/src/JSAPIExample.cpp+1−0
@@ -162,6 +162,7 @@ namespace REPLACE_ME_WITH_UNIQUE_NAME { · 161 unmodified lines
162162 * settings = null; // optional best pratice; allows the object to be reclaimed ASAP by the JS garbage collector
163163 */
164164 ScriptValue getScopedSettings(const QString& scope) {
165+ Q_ASSERT(engine);
165166 auto engine = Scriptable::engine();
166167 if (!engine) {
167168 return ScriptValue();