chrome-worker.js 602 B

12345678910111213141516171819202122232425
  1. /**
  2. * @fileoverview Defines the environment for chrome workers. This differs
  3. * from normal workers by the fact that `ctypes` can be accessed
  4. * as well.
  5. *
  6. * This Source Code Form is subject to the terms of the Mozilla Public
  7. * License, v. 2.0. If a copy of the MPL was not distributed with this
  8. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  9. */
  10. "use strict";
  11. var globals = require("globals");
  12. var util = require("util");
  13. var workerGlobals = util._extend(
  14. {
  15. ctypes: false,
  16. },
  17. globals.worker
  18. );
  19. module.exports = {
  20. globals: workerGlobals,
  21. };