Status: New
Owner: ----
New issue 2931 by [email protected]: `new TypedArray(n)` not ArrayBuffer
tamper proof
http://code.google.com/p/v8/issues/detail?id=2931
$ out/x64.debug/d8
V8 version 3.22.12 (candidate) [console: dumb]
d8> new Uint8Array(8)
[object Uint8Array]
d8> this.ArrayBuffer
function ArrayBuffer() { [native code] }
d8> this.ArrayBuffer = function() { throw Error('BAM') }
function () { throw Error('BAM') }
d8> new Uint8Array(8);
this.ArrayBuffer = function() { throw Error('BAM') }
^
Error: BAM
at Error (<anonymous>)
at new ArrayBuffer ((d8):1:39)
at new Uint8Array (<anonymous>)
at (d8):1:5
FWIW, SpiderMonkey is immune to this kind of monkey-patching.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.