String.prototype bug fixn's

git-svn-id: svn://10.0.0.236/trunk@139201 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
2003-03-10 16:15:52 +00:00
parent 2ead39846c
commit 602d6ca073
3 changed files with 68 additions and 64 deletions

View File

@@ -75,6 +75,7 @@ js2val setLength(JS2Metadata *meta, JS2Object *obj, uint32 newLength)
uint32 length = getLength(meta, obj);
if (newLength < length) {
// need to delete all the elements above the new length
// XXX (But only for array instances!) XXX
LookupKind lookup(false, JS2VAL_NULL);
bool deleteResult;
for (uint32 i = newLength; i < length; i++) {