t\'s global' : 'test harness global'}`);
}, 'autonomous: exception thrown in constructor is reported to definition\'s global');

promise_test(async t => {
  let w = await create_window_in_test(t, `<script>self.MyElement = class extends HTMLElement { constructor() { this.textContent = 'hello!'; } };</`+`script>`);
  let w2 = await create_window_in_test(t);
  w2.customElements.define('my-element', w.MyElement);
  let nextErrorPromise = nextErrorEvent([self, w, w2]);
  let elem = w2.document.createElement('my-