I want to use SpiderMonkey for driving a test harness (for the in-browser version see here). Now, I tried the following:
var defaultFileName = "all.n3";
var reader = new FileReader();
reader.readAsText(defaultFileName);
reader.onload = fileLoaded;
which fails with the following error:
regression-tests.js:9: ReferenceError: FileReader is not defined
Sorry if this is a dumb question but I did look around here and RTFMd for a bit but wasn't able to figure what to do (import? how?).