|
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';
|
|---|
| 2 | var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
|---|
| 3 | var clearErrorStack = require('../internals/error-stack-clear');
|
|---|
| 4 | var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');
|
|---|
| 5 |
|
|---|
| 6 | // non-standard V8
|
|---|
| 7 | // eslint-disable-next-line es/no-nonstandard-error-properties -- safe
|
|---|
| 8 | var captureStackTrace = Error.captureStackTrace;
|
|---|
| 9 |
|
|---|
| 10 | module.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.