Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
1 // Arrow functions have a .length property like ordinary functions.
3 assertEq((a => a).hasOwnProperty("length"), true);
5 assertEq((a => a).length, 1);
6 assertEq((() => 0).length, 0);
7 assertEq(((a) => 0).length, 1);
8 assertEq(((a, b) => 0).length, 2);
10 assertEq(((...arr) => arr).length, 0);
11 assertEq(((a=1, b=2) => 0).length, 0);