(flowNode)
| 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) { |
nothing calls this directly
no test coverage detected