Category Archives: JavaScript

JavaScript Error Handling

JavaScript Async/Await Exception Handling with Airbrake!

Introduced in ES6, promises are the big leap forward into asynchronous operations that JavaScript has needed for some time. However, in ES7 (or ESNext, as the upcoming release is sometimes referred to), promises were dramatically improved with the introduction of async functions and the await operator. In short, an async… continue reading →

JavaScript Error Handling

JavaScript Error Handling – Using //@ to Indicate SourceURL Pragmas is Deprecated SyntaxError

Moving right along through our JavaScript Error Handling series, today we’ll be tackling the Invalid Source Map Format JavaScript error. Although the Invalid Source Map Format error is technically a descendant of the base SyntaxError object, it applies to a very specific case; when using a deprecated symbol to indicate… continue reading →

JavaScript Error Handling

JavaScript Errors – Malformed Formal Parameter SyntaxError

Moving along through our JavaScript Error Handling series, today we’re going to closely examine the Malformed Formal Parameter error. Malformed Formal Parameter errors appear when attempting to use the Function() constructor to create your own function object, but then specifying invalid parameters when doing so. In this article, we’ll dive… continue reading →

JavaScript Error Handling

JavaScript Error Handling – Invalid Array Sort Argument TypeError

Today in the continued journey through our JavaScript Error Handling series we’ll be exploring the Invalid Array Sort Argument TypeError. The Invalid Array Sort Argument TypeError is thrown by the Firefox JavaScript engine in a very specific situation: When the argument passed to the Array.prototype.sort() method isn’t a valid function…. continue reading →