blob: 78923d8bbaede3b0df5d8d3f03bb8bae524d63d9 [file] [log] [blame] [edit]
(function test() {
let e = new Error();
Error.captureStackTrace(e, test);
let firstStack = e.stack;
Error.captureStackTrace(e, test);
let secondStack = e.stack;
if (firstStack !== secondStack)
throw new Error("captureStackTrace not idempotent on Error before materialization");
})();