core icon indicating copy to clipboard operation
core copied to clipboard

Inheritance from Error

Open Jand42 opened this issue 8 years ago • 0 comments

JavaScript Error constructor does not use the this parameter but returns a new object. Although when targeting EcmaScript 6, class syntax works for inheriting it, compiling to ES5 the prototype set for the base class will be erased by this and must be restored for correct behavior.

Jand42 avatar Oct 31 '17 08:10 Jand42