dherman / structs.js

A prollyfill for ES6 typed/structured objects
http://wiki.ecmascript.org/doku.php?id=harmony:typed_objects
31 stars 3 forks source link

censor size/offset info for opaque data #4

Closed dherman closed 12 years ago

dherman commented 12 years ago

Views of TypedBuffers should not expose size or offset information. Several options:

For backwards compatibility with typed arrays, I think the best option is to throw.

dherman commented 12 years ago

I went with throwing.

https://github.com/dherman/structs.js/commit/66b98dfdebcf7ee26f95a40d1ba6c38fd5e1d9eb