MCPcopy Index your code
hub / github.com/nodejs/node / isObjectAssignCall

Function isObjectAssignCall

tools/eslint-rules/set-proto-to-null-in-object.js:111–124  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

109
110// Helper function to check if the node represents an ObjectAssign call
111function isObjectAssignCall(node) {
112 return (
113 node.type === 'CallExpression' &&
114 node.callee &&
115 node.callee.type === 'Identifier' &&
116 node.callee.name === 'ObjectAssign' &&
117 node.arguments.length > 1 &&
118 node.arguments.some((arg) =>
119 arg.type === 'MemberExpression' &&
120 arg.object.name === 'module' &&
121 arg.property.name === 'exports',
122 )
123 );
124}
125
126// Helper function to check if the node represents an ObjectDefineProperties call
127function isObjectDefinePropertiesCall(node) {

Callers 1

isModifiedExportsFunction · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…