From 1c73006e39ee70332f8c48fa521bddf5a33df64d Mon Sep 17 00:00:00 2001 From: Anthony Kim Date: Wed, 21 Jan 2026 13:41:29 -0800 Subject: [PATCH] Switch TransitionTable to Uint16Array --- src/common/parser/EscapeSequenceParser.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/parser/EscapeSequenceParser.ts b/src/common/parser/EscapeSequenceParser.ts index 60396c1e..2eb36bbb 100644 --- a/src/common/parser/EscapeSequenceParser.ts +++ b/src/common/parser/EscapeSequenceParser.ts @@ -18,8 +18,8 @@ import { ApcParser } from 'common/parser/ApcParser'; * value: action << TableValue.TRANSITION_ACTION_SHIFT | nextState */ const enum TableAccess { - TRANSITION_ACTION_SHIFT = 4, - TRANSITION_STATE_MASK = 15, + TRANSITION_ACTION_SHIFT = 8, + TRANSITION_STATE_MASK = 255, INDEX_STATE_SHIFT = 8 } @@ -27,10 +27,10 @@ const enum TableAccess { * Transition table for EscapeSequenceParser. */ export class TransitionTable { - public table: Uint8Array; + public table: Uint16Array; constructor(length: number) { - this.table = new Uint8Array(length); + this.table = new Uint16Array(length); } /**