MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / stepOver

Function stepOver

debug-plugin/content-script.js:112–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 };
111
112 const stepOver = function () {
113 if (!cmd) return continueExec();
114 const result =
115 cmd && cmd.type === "breakpointCommand"
116 ? runtime.findNext(cmd, ctx)
117 : runtime.unifiedEval(cmd, ctx);
118 if (result.type === "implicitReturn") return stepOut();
119 if (result && result.then instanceof Function) {
120 return result.then((next) => {
121 cmd = next;
122 bus.dispatchEvent(new Event("step"));
123 logCommand();
124 });
125 } else if (result === runtime.HALT) {
126 bus.dispatchEvent(new Event("continue"));
127 } else {
128 cmd = result;
129 bus.dispatchEvent(new Event("step"));
130 logCommand();
131 }
132 ui();
133 };
134
135 const stepOut = function () {
136 if (!ctx.meta.caller) return continueExec();

Callers

nothing calls this directly

Calls 6

stepOutFunction · 0.85
logCommandFunction · 0.85
continueExecFunction · 0.70
uiFunction · 0.70
findNextMethod · 0.45
unifiedEvalMethod · 0.45

Tested by

no test coverage detected