Fix editInboundObjectFn utility scriptlet

This commit is contained in:
Raymond Hill 2025-10-02 12:31:13 -04:00
parent d8ed2c2866
commit d376adaae8
No known key found for this signature in database
GPG key ID: F5630CAE62A14316

View file

@ -216,11 +216,11 @@ function editInboundObjectFn(
return objAfter;
};
proxyApplyFn(propChain, function(context) {
const i = getArgPos(context.args);
const i = getArgPos(context.callArgs);
if ( i !== undefined ) {
const obj = editObj(context.args[i]);
const obj = editObj(context.callArgs[i]);
if ( obj ) {
context.args[i] = obj;
context.callArgs[i] = obj;
}
}
return context.reflect();