mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 15:47:52 +02:00
pastojs: fixed insert array
git-svn-id: trunk@49209 -
This commit is contained in:
parent
bb977b398d
commit
b64d1f9dfd
3
utils/pas2js/dist/rtl.js
vendored
3
utils/pas2js/dist/rtl.js
vendored
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user