OLD | NEW |
1 function GC() | 1 function GC() |
2 { | 2 { |
3 // Force GC. | 3 // Force GC. |
4 if (window.GCController) | 4 if (window.GCController) |
5 GCController.collect(); | 5 GCController.collectAll(); |
6 else { | 6 else { |
7 for (var i = 0; i < 10000; ++i) { | 7 for (var i = 0; i < 10000; ++i) { |
8 ({ }); | 8 ({ }); |
9 } | 9 } |
10 } | 10 } |
11 } | 11 } |
12 | 12 |
13 // Variable for the database that will never be forgotten | 13 // Variable for the database that will never be forgotten |
14 var persistentDB = 0; | 14 var persistentDB = 0; |
15 // Variable for the forgotten database | 15 // Variable for the forgotten database |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 tx.executeSql("INSERT INTO DataTest (randomData) VALUES (1)", []
); | 47 tx.executeSql("INSERT INTO DataTest (randomData) VALUES (1)", []
); |
48 }); | 48 }); |
49 }, function(err) { | 49 }, function(err) { |
50 log("Persistent Database Transaction Errored - " + err); | 50 log("Persistent Database Transaction Errored - " + err); |
51 checkCompletion(); | 51 checkCompletion(); |
52 }, function() { | 52 }, function() { |
53 log("Persistent Database Transaction Complete"); | 53 log("Persistent Database Transaction Complete"); |
54 checkCompletion(); | 54 checkCompletion(); |
55 }); | 55 }); |
56 } | 56 } |
OLD | NEW |