2626const  { 
2727  Array, 
2828  ArrayIsArray, 
29+   Int8Array, 
2930  MathAbs, 
3031  ObjectCreate, 
3132  ObjectKeys, 
@@ -53,7 +54,7 @@ const QueryString = module.exports = {
5354  decode : parse 
5455} ; 
5556
56- const  unhexTable  =  [ 
57+ const  unhexTable  =  new   Int8Array ( [ 
5758  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  // 0 - 15 
5859  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  // 16 - 31 
5960  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  // 32 - 47 
@@ -70,7 +71,7 @@ const unhexTable = [
7071  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 , 
7172  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 , 
7273  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1 ,  - 1   // ... 255 
73- ] ; 
74+ ] ) ; 
7475// A safe fast alternative to decodeURIComponent 
7576function  unescapeBuffer ( s ,  decodeSpaces )  { 
7677  const  out  =  Buffer . allocUnsafe ( s . length ) ; 
@@ -130,7 +131,7 @@ function qsUnescape(s, decodeSpaces) {
130131// digits 
131132// alpha (uppercase) 
132133// alpha (lowercase) 
133- const  noEscape  =  [ 
134+ const  noEscape  =  new   Int8Array ( [ 
134135  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  // 0 - 15 
135136  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  0 ,  // 16 - 31 
136137  0 ,  1 ,  0 ,  0 ,  0 ,  0 ,  0 ,  1 ,  1 ,  1 ,  1 ,  0 ,  0 ,  1 ,  1 ,  0 ,  // 32 - 47 
@@ -139,7 +140,7 @@ const noEscape = [
139140  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  0 ,  0 ,  0 ,  0 ,  1 ,  // 80 - 95 
140141  0 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  // 96 - 111 
141142  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  1 ,  0 ,  0 ,  0 ,  1 ,  0   // 112 - 127 
142- ] ; 
143+ ] ) ; 
143144// QueryString.escape() replaces encodeURIComponent() 
144145// https://www.ecma-international.org/ecma-262/5.1/#sec-15.1.3.4 
145146function  qsEscape ( str )  { 
0 commit comments