@@ -247,6 +247,7 @@ export class EscapeSequenceParser extends Disposable implements IEscapeSequenceP
247247 // handler lookup containers
248248 protected _printHandler : PrintHandlerType ;
249249 protected _executeHandlers : { [ flag : number ] : ExecuteHandlerType } ;
250+ // fast path for EXE bytes < 0x18
250251 protected _executeHandlersArr : ( ExecuteHandlerType | undefined ) [ ] ;
251252 protected _csiHandlers : IHandlerCollection < CsiHandlerType > ;
252253 protected _escHandlers : IHandlerCollection < EscHandlerType > ;
@@ -291,13 +292,13 @@ export class EscapeSequenceParser extends Disposable implements IEscapeSequenceP
291292 this . _errorHandlerFb = ( state : IParsingState ) : IParsingState => state ;
292293 this . _printHandler = this . _printHandlerFb ;
293294 this . _executeHandlers = Object . create ( null ) ;
294- this . _executeHandlersArr = new Array < ExecuteHandlerType | undefined > ( 0x18 ) . fill ( undefined ) ;
295+ this . _executeHandlersArr = new Array ( 0x18 ) . fill ( undefined ) ;
295296 this . _csiHandlers = Object . create ( null ) ;
296297 this . _escHandlers = Object . create ( null ) ;
297298 this . _register ( toDisposable ( ( ) => {
298299 this . _csiHandlers = Object . create ( null ) ;
299300 this . _executeHandlers = Object . create ( null ) ;
300- this . _executeHandlersArr = new Array < ExecuteHandlerType | undefined > ( 0x18 ) . fill ( undefined ) ;
301+ this . _executeHandlersArr = new Array ( 0x18 ) . fill ( undefined ) ;
301302 this . _escHandlers = Object . create ( null ) ;
302303 } ) ) ;
303304 this . _oscParser = this . _register ( new OscParser ( ) ) ;
0 commit comments