]> zoso.dev Git - buffer.git/commit
Use ES6 Proxy to workaround Firefox limitations
authorFeross Aboukhadijeh <feross@feross.org>
Mon, 25 Nov 2013 13:16:31 +0000 (05:16 -0800)
committerFeross Aboukhadijeh <feross@feross.org>
Mon, 25 Nov 2013 13:16:31 +0000 (05:16 -0800)
commit18c6784277e25db01ee145e5dfaaf23bb5b311fc
treed6c3b3b5e9430982bb2e4286c3117cd380ab131c
parent207c75c1a1357bf9797aabfdc38217ae6c91f9d1
Use ES6 Proxy to workaround Firefox limitations

Firefox does not allow augmenting "native" objects (like Uint8Array
instances) with new properties for some unknown (probably silly)
reason.  So we'llĀ use an ES6 Proxy (supported since Firefox 18) to wrap
the Uint8Array instance without actually adding any properties to it.
index.js