// Module ID: 18131 // Function ID: 18132 // Name: libDiscoreSmokeTest // Dependencies: [5, 1074, 3, 1354, 1350, 1984, 1241, 2] // Exports: default, formatErrorMessage, libDiscoreSmokeTest // Module 18131 (libDiscoreSmokeTest) import LoggerDefault from "Logger" /* 3 */; import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */; import initLibdiscore from "initLibdiscore" /* 1354 */; import libdiscoreExperiments from "libdiscoreExperiments" /* 1984 */; import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */; require = fn; function libDiscoreSmokeTest() { const self = this; const apply = closure_7.apply; if (typeof apply === "unknown") { let applyArgumentsResult = HermesBuiltin.applyArguments(self); } else { applyArgumentsResult = apply(self, arguments); } return applyArgumentsResult; } let closure_7 = async function _libDiscoreSmokeTest(arg0, value) { if (c5 === 2) { c5 = 3; throw new TypeError("Generator functions may not be called on executing generators"); } else if (tmp6 === 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; let tmp7 = c4; if (0 === c4) { if (arg0 === 1) { c5 = 3; throw value; } else if (arg0 === 2) { c5 = 3; const obj4 = { value, done: true }; return obj4; } else { closure_1 = tmp3; closure_0 = tmp7; closure_128_0 = undefined; tmp7 = timestampProducer; if (!timestampProducer) { c3 = 1; c4 = 2; c5 = 1; const obj5 = { value: initLibdiscore.initLibdiscore(), done: false }; return obj5; } } } else { if (1 === tmp7) { c3 = 0; closure_129_9(closure_2); } else if (arg0 === 1) { c5 = 3; throw value; } else if (arg0 === 2) { c3 = 0; c5 = 3; const obj6 = { value, done: true }; return obj6; } else { closure_128_0 = closure_129_0(closure_129_2[4]).rustMultiply(6, 7); closure_129_5.info("The answer for life the universe and everything is:", closure_128_0); closure_129_8(); c3 = 0; const obj = closure_129_0(closure_129_2[4]); } tmp7 = closure_1; closure_129_6 = true; } c5 = 3; } catch (tmp24) { closure_2 = tmp24; if (tmp4 === c3) { c5 = tmp2; throw tmp24; } else { c4 = tmp; } } } }; function trackLibdiscoreSuccess() { const items = []; const prop = libdiscoreExperiments.ALL_LIBDISCORE_EXPERIMENTS; const item = prop.forEach((getEnabledFeatureName) => { const enabledFeatureName = getEnabledFeatureName.getEnabledFeatureName(); if (null != enabledFeatureName) { items.push(enabledFeatureName); } }); AnalyticsUtilsDefault.track(AnalyticEvents.LIBDISCORE_LOADED, { success: true, experimental_features: items }); } function trackLibdiscoreFailure(arg0) { logger.error("Failed to execute smoke test:", arg0); if (arg0 instanceof Error) { ({ message, name } = arg0); } else { message = "Unknown error"; if (null != arg0) { const _String = String; message = String(arg0); } name = null; } let text = message; if (message.length > 1000) { text = `${message.substring(0, 997)}...`; } let combined = text; if (null != name) { const _HermesInternal = HermesInternal; combined = "" + name + ": " + text; } AnalyticsUtilsDefault.track(AnalyticEvents.LIBDISCORE_LOADED, { success: false, error: combined }); } const AnalyticEvents = fn(1074).AnalyticEvents; const logger = new LoggerDefault("libdiscore"); let c6 = false; const size = fn(2); const result = size.fileFinishedImporting("modules/libdiscore/libDiscoreSmokeTest.tsx"); export default libDiscoreSmokeTest; export { libDiscoreSmokeTest }; export { trackLibdiscoreSuccess }; export const formatErrorMessage = function formatErrorMessage(arg0) { if (arg0 instanceof Error) { ({ message, name } = arg0); } else { message = "Unknown error"; if (null != arg0) { const _String = String; message = String(arg0); } name = null; } let text = message; if (message.length > 1000) { text = `${message.substring(0, 997)}...`; } let combined = text; if (null != name) { const _HermesInternal = HermesInternal; combined = "" + name + ": " + text; } return combined; }; export { trackLibdiscoreFailure };