Support for environments that don't have File

This commit is contained in:
copy 2016-09-27 22:09:26 +02:00
parent 04a6a95427
commit 8996cc1e00

View file

@ -226,7 +226,7 @@ function V86Starter(options)
loadable: buffer,
});
}
else if(file.buffer instanceof File)
else if(typeof File !== "undefined" && file.buffer instanceof File)
{
// SyncFileBuffer:
// - loads the whole disk image into memory, impossible for large files (more than 1GB)