IBM Support

The behavior of javascript function Array.splice() is different

Question & Answer


Question

On browsers, the behavior of javascript function Array.splice() is as follows. This function changes source array variable and returns new array of removed elements. Example: var src = ['a','b','c'] var res = src.splice(2,1,'d') Result: src => ['a','b','d'] res => ['c'] However, on ISIM 5.1/6.0/7.0, source array is not changed and it returns result of operation. Result on ISIM 5.1/6.0/7.0 src => not changed res => ['a','b','d']

Answer

This is caused by difference of javascript engine. And, this can not be fixed in current release.

So, we recommend not to use splice function to manipulate array.

Of course, the customer can use splice function as current ISIM 5.1/6.0/7.0 behavior. However, he has to know the possibility that the behavior of splice function will be changed in future release.

[{"Product":{"code":"SSRMWJ","label":"IBM Security Identity Manager"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Server","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF010","label":"HP-UX"},{"code":"PF035","label":"z\/OS"}],"Version":"6.0;5.1;7.0","Edition":"","Line of Business":{"code":"LOB24","label":"Security Software"}}]

Document Information

Modified date:
25 June 2018

UID

swg21680209