Using the [web worker strategy](https://github.com/kripken/sql.js#use-as-web-worker) throws this error.  Probably a semicolon missing, ([related SO](http://stackoverflow.com/questions/30689310/anonymous-function-causing-problems)).