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;
7 // We expect the debugger script to always be loaded as classic
8 if (!isLoadedAsEsModule) {
9 postMessage("debugger script ran");