mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 15:47:53 +02:00
pas2js: fixed rtl.arrayPush copy instead of reference
This commit is contained in:
parent
558da7363e
commit
f26725e70c
10
utils/pas2js/dist/rtl.js
vendored
10
utils/pas2js/dist/rtl.js
vendored
@ -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<arguments.length; i++){
|
||||
a.push(arguments[i]);
|
||||
a=rtl.arrayCopy(type,a,0,a.length);
|
||||
}
|
||||
rtl.arrayClone(type,arguments,2,arguments.length-1,a,a.length);
|
||||
return a;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user