sdfsdfs
This commit is contained in:
13
node_modules/pixi.js/lib/rendering/renderers/shared/utils/parseFunctionBody.mjs
generated
vendored
Normal file
13
node_modules/pixi.js/lib/rendering/renderers/shared/utils/parseFunctionBody.mjs
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
function parseFunctionBody(fn) {
|
||||
const fnStr = fn.toString();
|
||||
const bodyStart = fnStr.indexOf("{");
|
||||
const bodyEnd = fnStr.lastIndexOf("}");
|
||||
if (bodyStart === -1 || bodyEnd === -1) {
|
||||
throw new Error("getFunctionBody: No body found in function definition");
|
||||
}
|
||||
return fnStr.slice(bodyStart + 1, bodyEnd).trim();
|
||||
}
|
||||
|
||||
export { parseFunctionBody };
|
||||
//# sourceMappingURL=parseFunctionBody.mjs.map
|
Reference in New Issue
Block a user