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

Function getStaticContext

scripts/babel-plugin-safe-bind.js:51–54  ·  view source on GitHub ↗
(bind, scope)

Source from the content-addressed store, hash-verified

49 }
50
51 function getStaticContext(bind, scope) {
52 const object = bind.object || bind.callee.object;
53 return scope.isStatic(object) && (_core.types.isSuper(object) ? _core.types.thisExpression() : object);
54 }
55
56 function inferBindContext(bind, scope) {
57 const staticContext = getStaticContext(bind, scope);

Callers 1

inferBindContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected