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
162 * settings = null; // optional best pratice; allows the object to be reclaimed ASAP by the JS garbage collector162 * settings = null; // optional best pratice; allows the object to be reclaimed ASAP by the JS garbage collector
163 */163 */
164 ScriptValue getScopedSettings(const QString& scope) {164 ScriptValue getScopedSettings(const QString& scope) {
165 Q_ASSERT(engine);
165 auto engine = Scriptable::engine();166 auto engine = Scriptable::engine();
166 if (!engine) {167 if (!engine) {
167 return ScriptValue();168 return ScriptValue();