Skyline/node_modules/ow/dist/utils/generate-stack.js
2021-11-22 17:39:03 +00:00

13 lines
443 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateStackTrace = void 0;
/**
Generates a useful stacktrace that points to the user's code where the error happened on platforms without the `Error.captureStackTrace()` method.
@hidden
*/
const generateStackTrace = () => {
const stack = new RangeError('INTERNAL_OW_ERROR').stack;
return stack;
};
exports.generateStackTrace = generateStackTrace;