File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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) {
4848function GetConstructors ( object ) {
4949 const constructors = [ ] ;
5050
51- for ( var current = object ;
51+ for ( let current = object ;
5252 current !== null ;
5353 current = Object . getPrototypeOf ( current ) ) {
5454 const desc = Object . getOwnPropertyDescriptor ( current , 'constructor' ) ;
@@ -82,7 +82,7 @@ function serializeError(error) {
8282 if ( typeof error === 'object' &&
8383 ObjectPrototype . toString ( error ) === '[object Error]' ) {
8484 const constructors = GetConstructors ( error ) ;
85- for ( var i = 0 ; i < constructors . length ; i ++ ) {
85+ for ( let i = 0 ; i < constructors . length ; i ++ ) {
8686 const name = GetName ( constructors [ i ] ) ;
8787 if ( errorConstructorNames . has ( name ) ) {
8888 const serialized = serialize ( {
You can’t perform that action at this time.
0 commit comments