1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04:00

Don't check CACHE_ENTRY_LENGTH in cache_entry_set_property since, as

Jonas pointed out, .length is read-only, so SpiderMonkey will never
pass the setter CACHE_ENTRY_LENGTH. Anyway, .uri is also read-only and
is not handled in the setter.
This commit is contained in:
Miciah Dashiel Butler Masters 2005-12-29 07:19:15 +00:00 committed by Miciah Dashiel Butler Masters
parent 898c2a8165
commit 1ba2b6931a

View File

@ -119,11 +119,6 @@ cache_entry_set_property(JSContext *ctx, JSObject *obj, jsval id, jsval *vp)
return JS_TRUE;
}
case CACHE_ENTRY_LENGTH:
INTERNAL("attempted to assign to cache_entry's length");
return JS_FALSE;
default:
INTERNAL("Invalid ID %d in cache_entry_get_property().",
JSVAL_TO_INT(id));