mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
test Uint8Array and Array; fix Uint8Array type
This commit is contained in:
+891
-837
File diff suppressed because it is too large
Load Diff
@@ -28,9 +28,9 @@ export class TransitionTable {
|
||||
public table: Uint8Array | number[];
|
||||
|
||||
constructor(length: number) {
|
||||
this.table = (typeof Uint32Array === 'undefined')
|
||||
this.table = (typeof Uint8Array === 'undefined')
|
||||
? new Array(length)
|
||||
: new Uint32Array(length);
|
||||
: new Uint8Array(length);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user