File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ export class KillOnSignal implements FlowController {
3232 return { ...exitInfo , exitCode } ;
3333 } ) ,
3434 ) ;
35+ // Return a proxy so that mutations happen on the original Command object.
36+ // If either `Object.assign()` or `Object.create()` were used, it'd be hard to
37+ // reflect the mutations on Command objects referenced by previous flow controllers.
3538 return new Proxy ( command , {
3639 get ( target , prop : keyof Command ) {
3740 return prop === 'close' ? closeStream : target [ prop ] ;
Original file line number Diff line number Diff line change @@ -79,6 +79,9 @@ export class RestartProcess implements FlowController {
7979 } ) ,
8080 ) ;
8181
82+ // Return a proxy so that mutations happen on the original Command object.
83+ // If either `Object.assign()` or `Object.create()` were used, it'd be hard to
84+ // reflect the mutations on Command objects referenced by previous flow controllers.
8285 return new Proxy ( command , {
8386 get ( target , prop : keyof Command ) {
8487 return prop === 'close' ? closeStream : target [ prop ] ;
You can’t perform that action at this time.
0 commit comments