Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toString doesn't always work on typed arrays #21

Merged
merged 1 commit into from
Jul 28, 2016
Merged

toString doesn't always work on typed arrays #21

merged 1 commit into from
Jul 28, 2016

Conversation

walkingeyerobot
Copy link
Contributor

According to the spec, TypedArray does not define its own toString and inherits it directly from Object. In implementations that follow this (like SpiderMonkey), this causes the dictionary to be effectively empty. In v8, TypedArray's toString is somehow Array.prototype.toString. This fix just manually uses that toString.

@walkingeyerobot
Copy link
Contributor Author

@curiousdannii
Copy link
Owner

Thank you for spotting this! How would you like to be credited in the contributors file?

@curiousdannii curiousdannii merged commit 1eb15c7 into curiousdannii:master Jul 28, 2016
@walkingeyerobot
Copy link
Contributor Author

Like this please. And thanks!

Mitch Foley mitch@thefoley.net

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.

None yet

2 participants