As raised in #267 , there are problems implementing Blob, File, and FileList although the Structured Cloning Algorithm technically supports them and the support that existed within our past implementation (which had problems in using eval (bad for CSP if not security) and with cyclic values) has been removed for now.
The reason for this is that the spec currently requires throwing errors synchronously upon bad data, but to encounter and thus report errors in retrieving their contents, we'd need to load synchronously (or just inform users that the must forego the chance to get errors reported synchronously as per the spec).
As raised in #267 , there are problems implementing
Blob
,File
, andFileList
although the Structured Cloning Algorithm technically supports them and the support that existed within our past implementation (which had problems in usingeval
(bad for CSP if not security) and with cyclic values) has been removed for now.The reason for this is that the spec currently requires throwing errors synchronously upon bad data, but to encounter and thus report errors in retrieving their contents, we'd need to load synchronously (or just inform users that the must forego the chance to get errors reported synchronously as per the spec).
Although we should be able to get around it, our implementation would be cleaner with https://github.com/tmpvar/jsdom/issues/1721 .