mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 00:42:06 +02:00
pas2js: fixed arrayRef
git-svn-id: trunk@45335 -
This commit is contained in:
parent
4fed12553a
commit
4afe1de02f
9
utils/pas2js/dist/rtl.js
vendored
9
utils/pas2js/dist/rtl.js
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user