worker.js (817B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 "use strict"; 5 6 const { 7 Arg, 8 generateActorSpec, 9 } = require("resource://devtools/shared/protocol.js"); 10 11 const workerTargetSpec = generateActorSpec({ 12 typeName: "workerTarget", 13 methods: {}, 14 events: { 15 "resources-available-array": { 16 type: "resources-available-array", 17 array: Arg(0, "array:json"), 18 }, 19 "resources-destroyed-array": { 20 type: "resources-destroyed-array", 21 array: Arg(0, "array:json"), 22 }, 23 "resources-updated-array": { 24 type: "resources-updated-array", 25 array: Arg(0, "array:json"), 26 }, 27 }, 28 }); 29 30 exports.workerTargetSpec = workerTargetSpec;