WorkerDebugger.initialize_debugger_es_worker.js (312B)
1 "use strict"; 2 3 // The following check is one possible way to identify 4 // if this script is loaded as a ES Module or the classic way. 5 const isLoadedAsEsModule = this != globalThis; 6 7 // We expect the debugger script to always be loaded as classic 8 if (!isLoadedAsEsModule) { 9 postMessage("debugger script ran"); 10 }