diff --git a/src/scripting/smjs/cache_object.c b/src/scripting/smjs/cache_object.c index 15dd7820..947cde06 100644 --- a/src/scripting/smjs/cache_object.c +++ b/src/scripting/smjs/cache_object.c @@ -138,6 +138,8 @@ get_cache_entry_object(struct cache_entry *cached) { JSObject *cache_entry_object; + assert(smjs_ctx); + cache_entry_object = JS_NewObject(smjs_ctx, (JSClass *) &cache_entry_class, NULL, NULL);