소스 검색

Add warning when blob could not be removed

Ben Hsieh 7 년 전
부모
커밋
7e1fd2b0ba
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      src/polyfill/Blob.js

+ 3
- 1
src/polyfill/Blob.js 파일 보기

@@ -259,7 +259,9 @@ export default class Blob extends EventTarget {
259 259
     if(this._closed)
260 260
       return Promise.reject('Blob has been released.')
261 261
     this._closed = true
262
-    return fs.unlink(this._ref)
262
+    return fs.unlink(this._ref).catch((err) => {
263
+      console.warn(err)
264
+    })
263 265
   }
264 266
 
265 267
   _invokeOnCreateEvent() {