Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update type and name of propName argument
  • Loading branch information
dario-piotrowicz committed Dec 16, 2025
commit b6cb5c9fdfb8aca21e1a04e5f577670a78321347
8 changes: 4 additions & 4 deletions lib/internal/repl/completion.js
Original file line number Diff line number Diff line change
Expand Up @@ -776,21 +776,21 @@ function includesProxiesOrGetters(expr, exprStr, evalFn, ctx, callback) {
* whether its value is a proxy, to ensure that is the property does have a getter we don't end up
* triggering it when checking its value
* @param {any} obj The target object
* @param {string} propName The target property name
* @param {string | number | bigint | boolean | RegExp} prop The target property
* @param {(includes: boolean) => void} cb Callback that will be called with the result of the operation
* @returns {void}
*/
function propHasGetterOrIsProxy(obj, propName, cb) {
function propHasGetterOrIsProxy(obj, prop, cb) {
const propDescriptor = ObjectGetOwnPropertyDescriptor(
obj,
propName,
prop,
);
const propHasGetter = typeof propDescriptor?.get === 'function';
if (propHasGetter) {
return cb(true);
}

if (isProxy(obj[propName])) {
if (isProxy(obj[prop])) {
return cb(true);
}

Expand Down
Loading