Remove the test of experimental properties in workers

This commit is contained in:
vyv03354 2013-02-17 14:30:08 +09:00
parent f8e70dcf13
commit b591d39130
3 changed files with 18 additions and 7 deletions

View file

@ -23,8 +23,13 @@ onmessage = function (e) {
break;
case 'xhr':
var xhr = new XMLHttpRequest();
var responseExists = 'response' in xhr || 'mozResponse' in xhr ||
'responseArrayBuffer' in xhr || 'mozResponseArrayBuffer' in xhr;
var responseExists = 'response' in xhr;
// check if the property is actually implemented
try {
var dummy = xhr.responseType;
} catch (e) {
responseExists = false;
}
postMessage({action: 'xhr', result: responseExists});
break;
case 'TextDecoder':