Category Archives: JavaScript Error Handling

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 →