This is not a polyfill for general use! Do not include it in your projects.
If you need a WebXR polyfill, use the one provided by the Immersive Web Community Group.
This implementation of WebXR supports a number of features that are non-standard, but are implemented in the WebXR Viewer. Details can be found in Extensions.md.