Deprecated arguments.caller Property (1104 / 1204 / 1304 / 1404)
AdminStudio 2021 | 21.0 | Application Manager
For this browser compatibility test, the web application contents are scanned for the usage of the deprecated arguments.caller property.
Test Group/Test Category
• | 1304—Browser Compatibility/Internet Explorer 11 |
• | 1404—Browser Compatibility/Microsoft Edge |
Severity
Warning
Message
This web application contains deprecated arguments.caller property (File: [FILE_NAME]).
Background
When arguments objects are created in Internet Explorer 10 and earlier, a property named caller is created. This caller property stores the reference to the argument object of the function that called it. Internet Explorer 11 and later do not support the arguments.caller property. When a script tries to use this property, Internet Explorer 11 and later generates the script error “object is null or undefined.” Depending on where the call is located, portions of the web application may fail to work.
Resolution
The web application should be re-engineered to avoid using the arguments.caller property. Where this is not feasible, Internet Explorer 11 Compatibility View should be used. It can be triggered by using the meta attribute value X-UA-Compatible.
See Also
IE9 Standards Mode Does Not Support the arguments.caller Property