GoogleChromeLabs/audioworklet-polyfill

Crash in Safari 11.1.2

Closed this issue · 0 comments

When using the polyfill in Sierra (10.12.6) and Safari 11.1.2, it crashes on the following code:

  Object.defineProperty(AudioContext.prototype, 'audioWorklet', {
    get () {
      return this.$$audioWorklet || (this.$$audioWorklet = new window.AudioWorklet(this));
    }
  });

AudioContext isn't defined so this gives a Can't find variable AudioContext.