Skip to content

Blob toString no longer returns '[object Blob]'#1756

Closed
woodb wants to merge 1 commit intojsdom:masterfrom
woodb:blob-tostring
Closed

Blob toString no longer returns '[object Blob]'#1756
woodb wants to merge 1 commit intojsdom:masterfrom
woodb:blob-tostring

Conversation

@woodb
Copy link

@woodb woodb commented Mar 4, 2017

With the merging of #1681, it looks like toString was dropped, causing certain code that checks for Blob types using toString to fail, as it's currently returning [object Object].

I've submitted a failing test in this PR to demonstrate.

@domenic
Copy link
Member

domenic commented Mar 12, 2017

Thanks for finding this. I think the best thing to do here will be to wait until our next major release, when we drop Node.js v4 support in favor of Node.js v6. Then we can use Symbol.toStringTag and fix this once and for all, for all jsdom classes.

@domenic
Copy link
Member

domenic commented Apr 24, 2017

Let's roll this into #1809

@domenic domenic closed this Apr 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants