Skip to content

fixed case where there is a Buffer but it does not has isBuffer defined#2

Open
tonetheman wants to merge 1 commit intoAutomattic:masterfrom
tonetheman:master
Open

fixed case where there is a Buffer but it does not has isBuffer defined#2
tonetheman wants to merge 1 commit intoAutomattic:masterfrom
tonetheman:master

Conversation

@tonetheman
Copy link

Saw this issue while trying to use socket.io.js client. global.Buffer was present but isBuffer was not a function defined so the last part of the if would fail. I added a small check to make sure the function is present before calling.

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.

1 participant