mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05: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:
parent
898c2a8165
commit
1ba2b6931a
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user