decord/source/44_invariant.js
2026-07-23 10:11:24 +00:00

27 lines
757 B
JavaScript

// Module ID: 44
// Function ID: 1306
// Name: invariant
// Dependencies: []
// Module 44 (invariant)
export default function invariant(arg0, str) {
if (!arg0) {
if (undefined === str) {
const _Error = Error;
let error = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
} else {
const items = [arg2, arg3, arg4, arg5, arg6, arg7];
let c1 = 0;
const _Error2 = Error;
const error1 = new Error(str.replace(/%s/g, () => {
let closure_1 = tmp + 1;
return items[+closure_1];
}));
error = error1;
error1.name = "Invariant Violation";
}
error.framesToPop = 1;
throw error;
}
};