Skip to content

Fix ArrayBuffer cloning (util.clone)#59

Merged
benvanik merged 1 commit into
benvanik:masterfrom
bpl:master
Sep 27, 2011
Merged

Fix ArrayBuffer cloning (util.clone)#59
benvanik merged 1 commit into
benvanik:masterfrom
bpl:master

Conversation

@bpl

@bpl bpl commented Aug 7, 2011

Copy link
Copy Markdown
Contributor

Util.clone wasn't able to clone an ArrayBuffer. Firstly, it referenced non-existent variable source when it seems that arg was actually meant. Secondly, DataView methods setUint8 and getUint8 were wrongly capitalized.

This should also fix issue #55.

Util.clone wasn't able to clone an ArrayBuffer. Firstly, it referenced
non-existent variable "source" when it seems that "arg" was actually meant.
Secondly, DataView methods setUint8 and getUint8 were wrongly capitalized.

The third change (target.byteLength -> arg.byteLength) is just for
consistency.
benvanik added a commit that referenced this pull request Sep 27, 2011
Fix ArrayBuffer cloning (util.clone)
@benvanik benvanik merged commit 209ca93 into benvanik:master Sep 27, 2011
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