mirror of
https://github.com/nodejs/node.git
synced 2026-12-06 10:48:45 -05:00
PR-URL: https://github.com/nodejs/node/pull/6132 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: thefourtheye <thechargingvolcano@gmail.com>
9 lines
233 B
JavaScript
9 lines
233 B
JavaScript
'use strict';
|
|
module.exports = function () {
|
|
var _ = Error.prepareStackTrace;
|
|
Error.prepareStackTrace = function (_, stack) { return stack };
|
|
var stack = new Error().stack.slice(1);
|
|
Error.prepareStackTrace = _;
|
|
return stack;
|
|
};
|