pas2js: fixed arrayRef

git-svn-id: trunk@45335 -
This commit is contained in:
Mattias Gaertner 2020-05-11 10:59:30 +00:00
parent 4fed12553a
commit 4afe1de02f

View File

@ -821,9 +821,7 @@ var rtl = {
},
arrayRef: function(a){
if (a!=null){
rtl.hideProp(a,$pas2jsrefcnt,1);
}
if (a!=null) rtl.hideProp(a,'$pas2jsrefcnt',1);
return a;
},
@ -911,11 +909,6 @@ var rtl = {
return true;
},
arrayRef: function(a){
if (a!==null) rtl.hideProp(a,'$pas2jsrefcnt',1);
return a;
},
arrayClone: function(type,src,srcpos,endpos,dst,dstpos){
// type: 0 for references, "refset" for calling refSet(), a function for new type()
// src must not be null