<!DOCTYPE html>
<meta charset=utf-8>
<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<script>
  // Hook up the debugger statement to extract the calling script's
  // introductionType and set it in a property on the parent global.
  const {addSandboxedDebuggerToGlobal} = ChromeUtils.importESModule("resource://gre/modules/jsdebugger.sys.mjs");
  addSandboxedDebuggerToGlobal(globalThis);
  var dbg = new Debugger;
  dbg.addDebuggee(parent);
  dbg.onDebuggerStatement = function (frame) {
    parent.introType = frame.script.source.introductionType;
  }
</script>
