better to use either:
```javascript
ErrorDialog.prototype = Object.create(Dialog.prototype)
```
or
```javascrpit
ErrorDialog.prototype = {
  __proto__: Dialog.prototype,
  nonActivSimErrorHandler: ...
  ...
}
```
So that there is no side-effects because you'd execute the Dialog constructor.