From 4afe1de02f261d5c7f1861c0cf4dfb0f6501d1a9 Mon Sep 17 00:00:00 2001
From: Mattias Gaertner <nc-gaertnma@netcologne.de>
Date: Mon, 11 May 2020 10:59:30 +0000
Subject: [PATCH] pas2js: fixed arrayRef

git-svn-id: trunk@45335 -
---
 utils/pas2js/dist/rtl.js | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/utils/pas2js/dist/rtl.js b/utils/pas2js/dist/rtl.js
index 3c695d0bae..de9d0db212 100644
--- a/utils/pas2js/dist/rtl.js
+++ b/utils/pas2js/dist/rtl.js
@@ -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