replit/empythoned — Issue #6: repl.it broken on dev FF/Chrome due to sync XHR change on Windows
Author: kripken
Created: 2012-01-11 18:04:13+00:00
State: open

Firefox and Chrome have disabled ArrayBuffer responses in sync XHRs in their nightly builds, example error:

[10:02:13.078] Use of XMLHttpRequest's responseType attribute is no longer supported in the synchronous mode in window context. @ http://repl.it/jsrepl/sandbox.html
[10:02:13.095] uncaught exception: [Exception... "A parameter or an operation is not supported by the underlying object" code: "15" nsresult: "0x8053000f (NS_ERROR_DOM_INVALID_ACCESS_ERR)" location: "http://repl.it/jsrepl/sandbox.js Line: 322"]

Sync XHRs work without ArrayBuffers, but the better solution is probably to put the compiled code in a worker, where ArrayBuffer still works.