Issue 22 in google-js-test: Google-JS-Test typed Arrays don't have a .buffer property.

2 views
Skip to first unread message

google-...@googlecode.com

unread,
Mar 14, 2012, 7:00:16 PM3/14/12
to google-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 22 by rowi...@google.com: Google-JS-Test typed Arrays don't have
a .buffer property.
http://code.google.com/p/google-js-test/issues/detail?id=22

What steps will reproduce the problem?
...
var foo = new Uint8Array([1, 2, 3, 4]);
var x = foo.buffer; // Barfs, shouldn't barf.
...

https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8Array

google-...@googlecode.com

unread,
Mar 14, 2012, 8:38:32 PM3/14/12
to google-...@googlegroups.com

Comment #1 on issue 22 by jaco...@google.com: Google-JS-Test typed Arrays

I don't see any buffer attribute here:


https://developer.mozilla.org/en/JavaScript_typed_arrays/Uint8Array#Attributes

or here:

http://www.khronos.org/registry/typedarray/specs/latest/#7

Could you clarify why you think there should be one?

google-...@googlecode.com

unread,
Mar 14, 2012, 8:42:34 PM3/14/12
to google-...@googlegroups.com

Comment #2 on issue 22 by rowi...@google.com: Google-JS-Test typed Arrays

https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBufferView#Typed_array_subclasses

All Typed arrays are subclasses of ArrayBufferView, which has buffer,
byteLength, and byteOffset hanging off of it.

google-...@googlecode.com

unread,
Mar 14, 2012, 8:52:38 PM3/14/12
to google-...@googlegroups.com

Comment #3 on issue 22 by jaco...@google.com: Google-JS-Test typed Arrays

You're right, thanks. Will make that happen.

google-...@googlecode.com

unread,
Mar 14, 2012, 10:18:29 PM3/14/12
to google-...@googlegroups.com
Updates:
Status: Fixed

Comment #4 on issue 22 by jaco...@google.com: Google-JS-Test typed Arrays

This issue was closed by revision 0bcce4eb3672.

Reply all
Reply to author
Forward
0 new messages