js/src/jit-test/tests/asm.js/testBug907085.js

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

michael@0 1 try {
michael@0 2 s.e
michael@0 3 } catch (e) {}
michael@0 4 o = o = s2 = /x/
michael@0 5 for (let e in []);
michael@0 6 x = s2
michael@0 7 schedulegc(21)
michael@0 8 eval("x.e=x.t")
michael@0 9 try {
michael@0 10 (function() {
michael@0 11 this.eval("\
michael@0 12 (function(stdlib,fgn,heap) {\
michael@0 13 \"use asm\";\
michael@0 14 var Vie = new stdlib.Float64Array(heap);\
michael@0 15 var Iew = new stdlib.Int8Array(heap);\
michael@0 16 function f(){\
michael@0 17 ent\
michael@0 18 }\
michael@0 19 })()\
michael@0 20 ")
michael@0 21 })()
michael@0 22 } catch (e) {}

mercurial