Files
il/resources/public/js/cljs-runtime/module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$utils$parseFunctionBody.js
2026-07-01 22:38:29 -06:00

13 lines
592 B
JavaScript

shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$utils$parseFunctionBody = function(global, require, module, exports) {
exports.parseFunctionBody = function(fn) {
fn = fn.toString();
const bodyStart = fn.indexOf("{"), bodyEnd = fn.lastIndexOf("}");
if (-1 === bodyStart || -1 === bodyEnd) {
throw Error("getFunctionBody: No body found in function definition");
}
return fn.slice(bodyStart + 1, bodyEnd).trim();
};
};
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$renderers$shared$utils$parseFunctionBody.js.map