estPromisePolyfilled"></span>
        </code>
        <script type="text/partytown">
          (function () {
            window.Promise = undefined;

            Promise = class ShadyPromise {
              constructor(fn) {
                fn((v) => setTimeout(this.cb('polyfill ' + v)));
              }
              then(cb) {
                this.cb = cb;
              }
            };

            const p = new Promise((resolve) => {
              setTimeout(() => resolve('resolved'));
            }).t