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

Function attachFlowNodeDebugInfo

test/fixtures/snapshot/typescript.js:2971–2987  ·  view source on GitHub ↗
(flowNode)

Source from the content-addressed store, hash-verified

2969 }
2970 }
2971 function attachFlowNodeDebugInfo(flowNode) {
2972 if (isDebugInfoEnabled) {
2973 if (typeof Object.setPrototypeOf === "function") {
2974 // if we're in es2015, attach the method to a shared prototype for `FlowNode`
2975 // so the method doesn't show up in the watch window.
2976 if (!flowNodeProto) {
2977 flowNodeProto = Object.create(Object.prototype);
2978 attachFlowNodeDebugInfoWorker(flowNodeProto);
2979 }
2980 Object.setPrototypeOf(flowNode, flowNodeProto);
2981 }
2982 else {
2983 // not running in an es2015 environment, attach the method directly.
2984 attachFlowNodeDebugInfoWorker(flowNode);
2985 }
2986 }
2987 }
2988 Debug.attachFlowNodeDebugInfo = attachFlowNodeDebugInfo;
2989 var nodeArrayProto;
2990 function attachNodeArrayDebugInfoWorker(array) {

Callers

nothing calls this directly

Calls 2

createMethod · 0.45

Tested by

no test coverage detected