From d6891e1e0ab0eccd8df0cc316118696270703758 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 4 Feb 2018 11:09:58 -0800 Subject: src/ljstype.js: Use Uint8Array instead of plain array --- src/ljstype.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ljstype.js b/src/ljstype.js index 4d46fa9..eb24ac5 100644 --- a/src/ljstype.js +++ b/src/ljstype.js @@ -1,6 +1,8 @@ "use strict"; -const luai_ctype_ = [ +const { luastring_of } = require('./defs.js'); + +const luai_ctype_ = luastring_of( 0x00, /* EOZ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* 0. */ 0x00, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x00, @@ -34,7 +36,7 @@ const luai_ctype_ = [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* f. */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 -]; +); const ALPHABIT = 0; const DIGITBIT = 1; -- cgit v1.2.3-70-g09d2