Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 7e1fd2b

Browse files
committed
Add warning when blob could not be removed
1 parent c2985f4 commit 7e1fd2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/polyfill/Blob.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ export default class Blob extends EventTarget {
259259
if(this._closed)
260260
return Promise.reject('Blob has been released.')
261261
this._closed = true
262-
return fs.unlink(this._ref)
262+
return fs.unlink(this._ref).catch((err) => {
263+
console.warn(err)
264+
})
263265
}
264266

265267
_invokeOnCreateEvent() {

0 commit comments

Comments
 (0)