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

Function isModuleExportsObject

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

Source from the content-addressed store, hash-verified

88
89// Helper function to check if the object is `module.exports`
90function isModuleExportsObject(node) {
91 return (
92 node.parent &&
93 node.parent.type === 'AssignmentExpression' &&
94 node.parent.left &&
95 node.parent.left.type === 'MemberExpression' &&
96 node.parent.left.object &&
97 node.parent.left.object.name === 'module' &&
98 node.parent.left.property &&
99 node.parent.left.property.name === 'exports'
100 );
101}
102
103function isModifiedExports(node) {
104 return (

Callers 1

ObjectExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…