13 lines
592 B
JavaScript
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
|