1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-30 01:55:30 +00:00

Assert smjs_ctx in get_cache_entry_object.

This commit is contained in:
Miciah Dashiel Butler Masters 2005-12-19 21:33:10 +00:00 committed by Miciah Dashiel Butler Masters
parent 2e0907ff8d
commit f5b102cfea

View File

@ -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);