7cb1aa2c by David LaPalomento

Don't try to delete Uint8Array

Phantomjs doesn't like deleting window.Uint8Array so just null it to test typed array feature detection.
1 parent 2e71aa18
...@@ -1154,7 +1154,7 @@ test('has no effect if native HLS is available', function() { ...@@ -1154,7 +1154,7 @@ test('has no effect if native HLS is available', function() {
1154 1154
1155 test('is not supported on browsers without typed arrays', function() { 1155 test('is not supported on browsers without typed arrays', function() {
1156 var oldArray = window.Uint8Array; 1156 var oldArray = window.Uint8Array;
1157 delete window.Uint8Array; 1157 window.Uint8Array = null;
1158 ok(!videojs.Hls.isSupported(), 'HLS is not supported'); 1158 ok(!videojs.Hls.isSupported(), 'HLS is not supported');
1159 1159
1160 // cleanup 1160 // cleanup
......