mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 10:19:30 +02:00
pas2js: fixed setlength(a,0)
git-svn-id: trunk@43168 -
This commit is contained in:
parent
688c7d439f
commit
76b5df1bd3
2
utils/pas2js/dist/rtl.js
vendored
2
utils/pas2js/dist/rtl.js
vendored
@ -851,7 +851,7 @@ var rtl = {
|
||||
for (var i=0; i<lastlen; i++)
|
||||
a[i]=(i<oldlen)?src[i]:defaultvalue;
|
||||
}
|
||||
while ((depth>0) && (stack[depth-1].i===stack[depth-1].dim)){
|
||||
while ((depth>0) && (stack[depth-1].i>=stack[depth-1].dim)){
|
||||
depth--;
|
||||
};
|
||||
if (depth===0){
|
||||
|
Loading…
Reference in New Issue
Block a user