(options)
| 22 | */ |
| 23 | class Builder extends CoreObject { |
| 24 | constructor(options) { |
| 25 | super(options); |
| 26 | |
| 27 | this._instantiationStack = new Error().stack.replace(/[^\n]*\n/, ''); |
| 28 | this._cleanup = this.cleanup.bind(this); |
| 29 | |
| 30 | this._cleanupStarted = false; |
| 31 | this._onProcessInterrupt = options.onProcessInterrupt || onProcessInterrupt; |
| 32 | |
| 33 | this._onProcessInterrupt.addHandler(this._cleanup); |
| 34 | } |
| 35 | |
| 36 | /** |
| 37 | * @private |
nothing calls this directly
no outgoing calls
no test coverage detected