MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / withSuper

Function withSuper

lib/web/tern/infer.js:914–920  ·  view source on GitHub ↗
(ctor, obj, f)

Source from the content-addressed store, hash-verified

912 }
913
914 function withSuper(ctor, obj, f) {
915 var oldCtor = cx.curSuperCtor, oldObj = cx.curSuper
916 cx.curSuperCtor = ctor; cx.curSuper = obj
917 var result = f()
918 cx.curSuperCtor = oldCtor; cx.curSuper = oldObj
919 return result
920 }
921
922 // SCOPES
923

Callers 2

inferClassFunction · 0.85
infer.jsFile · 0.85

Calls 1

fFunction · 0.50

Tested by

no test coverage detected