Does AssertionError.prototype.toString work correctly after modifying Error?