mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-13 03:36:07 +09:00
Clean up the oopsie. Rebuild the blank exercises.
This commit is contained in:
+10
-5
@@ -1,8 +1,13 @@
|
||||
'use strict';
|
||||
module.exports = function () {
|
||||
var _ = Error.prepareStackTrace;
|
||||
Error.prepareStackTrace = function (_, stack) { return stack };
|
||||
var stack = new Error().stack.slice(1);
|
||||
Error.prepareStackTrace = _;
|
||||
|
||||
const callsites = () => {
|
||||
const _prepareStackTrace = Error.prepareStackTrace;
|
||||
Error.prepareStackTrace = (_, stack) => stack;
|
||||
const stack = new Error().stack.slice(1);
|
||||
Error.prepareStackTrace = _prepareStackTrace;
|
||||
return stack;
|
||||
};
|
||||
|
||||
module.exports = callsites;
|
||||
// TODO: Remove this for the next major release
|
||||
module.exports.default = callsites;
|
||||
|
||||
Reference in New Issue
Block a user