From f26725e70cef018762baad434b03afb93e00bb80 Mon Sep 17 00:00:00 2001 From: mattias Date: Tue, 21 Jun 2022 09:08:28 +0200 Subject: [PATCH] pas2js: fixed rtl.arrayPush copy instead of reference --- utils/pas2js/dist/rtl.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/utils/pas2js/dist/rtl.js b/utils/pas2js/dist/rtl.js index 9ec3f4d665..8c71689010 100644 --- a/utils/pas2js/dist/rtl.js +++ b/utils/pas2js/dist/rtl.js @@ -1050,15 +1050,9 @@ var rtl = { if(a===null){ a=[]; } else if (a['$pas2jsrefcnt']){ - if (type===0){ - a=a.concat(); - } else { - a=rtl.arrayCopy(type,a,0,a.length); - } - } - for (var i=2; i