isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
10 lines • 523 B
TypeScript
/**
* In Lua, the `error` function will tell you the line number of the error, but not give you a full
* traceback of the parent functions, which is unlike how JavaScript works. This function monkey
* patches the `error` function to add this functionality.
*
* Traceback functionality can only be added if the "--luadebug" flag is turned on, so this function
* does nothing if the "--luadebug" flag is disabled.
*/
export declare function patchErrorFunction(): void;
//# sourceMappingURL=patchErrorFunctions.d.ts.map