keep old impl in test as reference; minor changes

This commit is contained in:
Jörg Breitbart
2018-11-20 22:35:51 +01:00
parent 21f848d0ab
commit 36db03e713
3 changed files with 7 additions and 10 deletions
-1
View File
@@ -90,7 +90,6 @@ export const wcwidth = (function(opts: {nul: number, control: number}): (ucs: nu
const control = opts.control | 0;
// create lookup table for BMP plane
// TODO: make callable/configurable from UnicodeManager
const table = new Uint8Array(65536);
table.fill(1);
table[0] = opts.nul;