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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user