Converter.sys.mjs (551B)
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 5 /* 6 * Create instances of the JSON view converter. 7 */ 8 export function Converter() { 9 const { require } = ChromeUtils.importESModule( 10 "resource://devtools/shared/loader/Loader.sys.mjs" 11 ); 12 const { 13 JsonViewService, 14 } = require("resource://devtools/client/jsonview/converter-child.js"); 15 16 return JsonViewService.createInstance(); 17 }