test Uint8Array and Array; fix Uint8Array type

This commit is contained in:
Jörg Breitbart
2018-05-06 22:42:07 +02:00
parent 362d7698f7
commit 108aa5ab31
2 changed files with 893 additions and 839 deletions
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -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);
}
/**