sql.js icon indicating copy to clipboard operation
sql.js copied to clipboard

literal strings are thrown on errors instead of Error objects

Open lovasoa opened this issue 5 years ago • 0 comments

It is considered good practice to only throw the Error object itself or an object using the Error object as base objects for user-defined exceptions. The fundamental benefit of Error objects is that they automatically keep track of where they were built and originated.

This would be a breaking change, but should not impact many users.

lovasoa avatar Feb 29 '20 13:02 lovasoa