<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf8" />
    <script>
      window.shimPromise = new Promise(resolve => {
        window.shimPromiseResolve = resolve;
      });
      window.optInPromise = new Promise(resolve => {
        window.optInPromiseResolve = resolve;
      });
    </script>
    <script
      onerror="window.shimPromiseResolve('error')"
      src="shims_test_3.js"
    ></script>
  </head>
  <body>
    <div id="shims"></div>
  </body>
</html>
