File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function TryGetAllProperties(object, target = object) {
48
48
function GetConstructors ( object ) {
49
49
const constructors = [ ] ;
50
50
51
- for ( var current = object ;
51
+ for ( let current = object ;
52
52
current !== null ;
53
53
current = Object . getPrototypeOf ( current ) ) {
54
54
const desc = Object . getOwnPropertyDescriptor ( current , 'constructor' ) ;
@@ -82,7 +82,7 @@ function serializeError(error) {
82
82
if ( typeof error === 'object' &&
83
83
ObjectPrototype . toString ( error ) === '[object Error]' ) {
84
84
const constructors = GetConstructors ( error ) ;
85
- for ( var i = 0 ; i < constructors . length ; i ++ ) {
85
+ for ( let i = 0 ; i < constructors . length ; i ++ ) {
86
86
const name = GetName ( constructors [ i ] ) ;
87
87
if ( errorConstructorNames . has ( name ) ) {
88
88
const serialized = serialize ( {
You can’t perform that action at this time.
0 commit comments