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

Function beginFinallyBlock

test/fixtures/snapshot/typescript.js:103537–103547  ·  view source on GitHub ↗

* Enters the `finally` block of a generated `try` statement.

()

Source from the content-addressed store, hash-verified

103535 * Enters the `finally` block of a generated `try` statement.
103536 */
103537 function beginFinallyBlock() {
103538 ts.Debug.assert(peekBlockKind() === 0 /* CodeBlockKind.Exception */);
103539 var exception = peekBlock();
103540 ts.Debug.assert(exception.state < 2 /* ExceptionBlockState.Finally */);
103541 var endLabel = exception.endLabel;
103542 emitBreak(endLabel);
103543 var finallyLabel = defineLabel();
103544 markLabel(finallyLabel);
103545 exception.state = 2 /* ExceptionBlockState.Finally */;
103546 exception.finallyLabel = finallyLabel;
103547 }
103548 /**
103549 * Ends the code block for a generated `try` statement.
103550 */

Callers 1

Calls 6

peekBlockKindFunction · 0.85
peekBlockFunction · 0.85
emitBreakFunction · 0.85
defineLabelFunction · 0.85
markLabelFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…