From fafb26deaea803dac1315f08c5371e63b2f56a44 Mon Sep 17 00:00:00 2001 From: mattias Date: Thu, 15 Apr 2021 21:05:52 +0000 Subject: [PATCH] pastojs: fixed insert array --- compiler/utils/pas2js/dist/rtl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/utils/pas2js/dist/rtl.js b/compiler/utils/pas2js/dist/rtl.js index cf08ce6..e0b9395 100644 --- a/compiler/utils/pas2js/dist/rtl.js +++ b/compiler/utils/pas2js/dist/rtl.js @@ -1042,7 +1042,8 @@ var rtl = { arrayInsert: function(item, arr, index){ if (arr){ - return arr.splice(index,0,item); + arr.splice(index,0,item); + return arr; } else { return [item]; }