瀏覽代碼

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

The intention was to override 'this' argument of 'Error.toString'.
master
paweldomas 8 年之前
父節點
當前提交
dc24782a2c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      react/features/mobile/external-api/middleware.js

+ 1
- 1
react/features/mobile/external-api/middleware.js 查看文件

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

Loading…
取消
儲存