source: frontend/node_modules/core-js/internals/error-stack-install.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 635 bytes
Line 
1'use strict';
2var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
3var clearErrorStack = require('../internals/error-stack-clear');
4var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');
5
6// non-standard V8
7// eslint-disable-next-line es/no-nonstandard-error-properties -- safe
8var captureStackTrace = Error.captureStackTrace;
9
10module.exports = function (error, C, stack, dropEntries) {
11 if (ERROR_STACK_INSTALLABLE) {
12 if (captureStackTrace) captureStackTrace(error, C);
13 else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));
14 }
15};
Note: See TracBrowser for help on using the repository browser.