Parcourir la source

fix(external-api/middleware): invalid toString call

The intention was to override 'this' argument of 'Error.toString'.
j8
paweldomas il y a 8 ans
Parent
révision
dc24782a2c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      react/features/mobile/external-api/middleware.js

+ 1
- 1
react/features/mobile/external-api/middleware.js Voir le fichier

@@ -83,7 +83,7 @@ function _toErrorString(
83 83
         error
84 84
             ? typeof error === 'string'
85 85
                 ? error
86
-                : Error.prototype.toString(error)
86
+                : Error.prototype.toString.apply(error)
87 87
             : '');
88 88
 }
89 89
 

Chargement…
Annuler
Enregistrer