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

Function step

test/fixtures/snapshot/typescript.js:45–66  ·  view source on GitHub ↗
(op)

Source from the content-addressed store, hash-verified

43 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
44 function verb(n) { return function (v) { return step([n, v]); }; }
45 function step(op) {
46 if (f) throw new TypeError("Generator is already executing.");
47 while (_) try {
48 if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
49 if (y = 0, t) op = [op[0] & 2, t.value];
50 switch (op[0]) {
51 case 0: case 1: t = op; break;
52 case 4: _.label++; return { value: op[1], done: false };
53 case 5: _.label++; y = op[1]; op = [0]; continue;
54 case 7: op = _.ops.pop(); _.trys.pop(); continue;
55 default:
56 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
57 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
58 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
59 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
60 if (t[2]) _.ops.pop();
61 _.trys.pop(); continue;
62 }
63 op = body.call(thisArg, _);
64 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
65 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
66 }
67};
68var __rest = (this && this.__rest) || function (s, e) {
69 var t = {};

Callers 1

verbFunction · 0.70

Calls 3

popMethod · 0.80
callMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…