tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

index.js (971B)


      1 /* Any copyright is dedicated to the Public Domain.
      2  http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 const maps = [];
      7 
      8 [
      9  "consoleApi",
     10  "cssMessage",
     11  "evaluationResult",
     12  "networkEvent",
     13  "pageError",
     14  "platformMessage",
     15 ].forEach(filename => {
     16  maps[filename] = require(`./${filename}`);
     17 });
     18 
     19 // Combine all the maps into a single map.
     20 module.exports = {
     21  stubPreparedMessages: new Map([
     22    ...maps.consoleApi.stubPreparedMessages,
     23    ...maps.cssMessage.stubPreparedMessages,
     24    ...maps.evaluationResult.stubPreparedMessages,
     25    ...maps.networkEvent.stubPreparedMessages,
     26    ...maps.pageError.stubPreparedMessages,
     27    ...maps.platformMessage.stubPreparedMessages,
     28  ]),
     29  stubPackets: new Map([
     30    ...maps.consoleApi.stubPackets,
     31    ...maps.cssMessage.stubPackets,
     32    ...maps.evaluationResult.stubPackets,
     33    ...maps.networkEvent.stubPackets,
     34    ...maps.pageError.stubPackets,
     35    ...maps.platformMessage.stubPackets,
     36  ]),
     37 };