Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
ReferenceError: 'Symbol' is undefined in IE 11 #1455
Test on demo: https://shaka-player-demo.appspot.com/demo/#asset=https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd;lang=ru-RU;build=compiled
Perhaps you need to add a polyfill and describe it in the readme.
The issue appears in the release build, but not the debug build.
To dig into this, I started by examining the compiled code and looking for
I tried to put a breakpoint in the code, but IE was making that difficult and wouldn't let me see the compiled bundle, possibly because there was a source map. The code that is breaking, though, was inserted by the compiler and doesn't map back to anything in the uncompiled library sources.
To better debug, I edited the compiled library and used http://jsbeautifier.org/ to format the first several lines of the compiled code, including the code that polyfills
While doing this, though, I noticed that only the release build uses a module wrapper. I commented out the module wrapper, and the problem went away. So it has something to do with the interaction between the Closure Compiler's inserted polyfill and our module wrapper.
The code inserted by the compiler doesn't work in a wrapper. It does not appear to be our wrapper's fault.
In some places, the compiler-inserted code refers to
I will patch it locally in our pre-built compiler, then create a PR to send the changes to the Closure Compiler team.