UNPKG

729 BJavaScriptView Raw
1
2(function() {
3 if (
4 // No Reflect, no classes, no need for shim because native custom elements
5 // require ES2015 classes or Reflect.
6 window.Reflect === undefined ||
7 window.customElements === undefined
8 ) {
9 return;
10 }
11 var BuiltInHTMLElement = HTMLElement;
12 window.HTMLElement = /** @this {!Object} */ function HTMLElement() {
13 return Reflect.construct(
14 BuiltInHTMLElement, [], /** @type {!Function} */ (this.constructor));
15 };
16 HTMLElement.prototype = BuiltInHTMLElement.prototype;
17 HTMLElement.prototype.constructor = HTMLElement;
18 Object.setPrototypeOf(HTMLElement, BuiltInHTMLElement);
19})();
20
21export * from '../dist/esm/polyfills/index.js';
22export * from '../dist/esm-es5/loader.mjs';