UNPKG

ow

Version:

Function argument validation for humans

10 lines (8 loc) 287 B
/** Generates a useful stacktrace that points to the user's code where the error happened on platforms without the `Error.captureStackTrace()` method. @hidden */ export const generateStackTrace = () => { const stack = new RangeError('INTERNAL_OW_ERROR').stack; return stack; };