first
This commit is contained in:
14
node_modules/core-js/internals/error-stack-install.js
generated
vendored
Normal file
14
node_modules/core-js/internals/error-stack-install.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
||||
var clearErrorStack = require('../internals/error-stack-clear');
|
||||
var ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');
|
||||
|
||||
// non-standard V8
|
||||
var captureStackTrace = Error.captureStackTrace;
|
||||
|
||||
module.exports = function (error, C, stack, dropEntries) {
|
||||
if (ERROR_STACK_INSTALLABLE) {
|
||||
if (captureStackTrace) captureStackTrace(error, C);
|
||||
else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user