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

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 2 weeks ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 564 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
7var captureStackTrace = Error.captureStackTrace;
8
9module.exports = function (error, C, stack, dropEntries) {
10 if (ERROR_STACK_INSTALLABLE) {
11 if (captureStackTrace) captureStackTrace(error, C);
12 else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));
13 }
14};
Note: See TracBrowser for help on using the repository browser.