MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / BindExpression

Function BindExpression

scripts/babel-plugin-safe-bind.js:93–100  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

91 },
92
93 BindExpression(path) {
94 const {
95 node,
96 scope
97 } = path;
98 const context = inferBindContext(node, scope);
99 path.replaceWith(_core.types.callExpression(_core.types.memberExpression(node.callee, _core.types.identifier("bind")), [context]));
100 }
101
102 }
103 };

Callers

nothing calls this directly

Calls 1

inferBindContextFunction · 0.85

Tested by

no test coverage detected