decord/source/__helpers/00xxx/863__symbolicateStackTrace.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

108 lines
3.1 KiB
JavaScript

// Module ID: 863
// Function ID: 864
// Name: _symbolicateStackTrace
// Dependencies: [5, 864, 215]
// Exports: default
// Module 863 (_symbolicateStackTrace)
import _mod864 from "module_864" /* 864 */;
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
require = arg1;
let closure_4 = async function _symbolicateStackTrace(arg0, value) {
if (c5 === 2) {
c5 = 3;
throw new TypeError("Generator functions may not be called on executing generators");
} else if (tmp3 === 3) {
if (arg0 === 1) {
throw value;
} else if (arg0 === 2) {
const obj2 = { value, done: true };
return obj2;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
c5 = 2;
if (0 === c4) {
if (arg0 === 1) {
c5 = 3;
throw value;
} else if (arg0 === 2) {
c5 = 3;
const obj3 = { value, done: true };
return obj3;
} else {
closure_3 = tmp4;
closure_131_0 = undefined;
const tmp22 = closure_0;
const tmp23 = closure_1;
const tmp24 = require;
const tmp25 = dependencyMap;
if (defaultResult.bundleLoadedFromServer) {
_fetch = _fetch.fetch;
let fetch = _fetch;
if (_fetch == null) {
fetch = tmp24(tmp25[2]).fetch;
}
const request = { method: "POST", headers: { "Content-Type": "application/json" }, body: null };
const _JSON = JSON;
const obj4 = { stack: tmp22, extraData: tmp23 };
const text = `${tmp26.url}symbolicate`;
request.body = JSON.stringify(obj4);
c4 = 1;
c5 = 1;
const obj5 = { value: fetch(`${tmp26.url}symbolicate`, request), done: false };
return obj5;
} else {
const _Error = Error;
const error = new Error("Bundle was not loaded from Metro.");
throw error;
}
defaultResult = _mod864.default();
}
} else if (1 === tmp4) {
if (arg0 === 1) {
c5 = 3;
throw value;
} else if (arg0 === 2) {
c5 = 3;
const obj6 = { value, done: true };
return obj6;
} else {
closure_131_0 = value;
c4 = 2;
c5 = 1;
const obj7 = { value: closure_131_0.json(), done: false };
return obj7;
}
} else if (arg0 === 1) {
c5 = 3;
throw value;
} else if (arg0 === 2) {
c5 = 3;
const obj8 = { value, done: true };
return obj8;
} else {
c5 = 3;
const obj = { value, done: true };
return obj;
}
} catch (tmp17) {
c5 = tmp;
throw tmp17;
}
}
};
export default function symbolicateStackTrace(arg0, arg1) {
const self = this;
const apply = closure_4.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
};