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

Function defineLabel

test/fixtures/snapshot/typescript.js:103396–103404  ·  view source on GitHub ↗

* Defines a label, uses as the target of a Break operation.

()

Source from the content-addressed store, hash-verified

103394 * Defines a label, uses as the target of a Break operation.
103395 */
103396 function defineLabel() {
103397 if (!labelOffsets) {
103398 labelOffsets = [];
103399 }
103400 var label = nextLabelId;
103401 nextLabelId++;
103402 labelOffsets[label] = -1;
103403 return label;
103404 }
103405 /**
103406 * Marks the current operation with the specified label.
103407 */

Callers 15

visitYieldExpressionFunction · 0.85
beginWithBlockFunction · 0.85
beginExceptionBlockFunction · 0.85
beginCatchBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…