nv-buf-serde 0.0.9 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/DIST/dist.js +7 -2
  2. package/package.json +1 -1
  3. package/r.js +502 -502
  4. package/w.js +4 -4
package/w.js CHANGED
@@ -310,7 +310,7 @@ const WriteJSMap = (a,mp,ctx) => {
310
310
 
311
311
  //compatible with node delegate
312
312
  const WriteHostObject = (a,o,ctx) => {
313
- let abvw_sub_type = arrayBufferViewTypeToIndex(o);
313
+ let abvw_sub_type = arrayBufferViewTypeToIndex(o);
314
314
  if(abvw_sub_type>-1) {
315
315
  WriteTag(a,SerializationTag.kHostObject,ctx);
316
316
  WriteUint32(a, abvw_sub_type, ctx);
@@ -389,7 +389,7 @@ const WriteJSArray = (a,o,ctx) => {
389
389
  let ks = Object.keys(o);
390
390
  let properties_written = 0;
391
391
  for(let i=o.length;i<ks.length;++i) {
392
- let k = ks[i];
392
+ let k = ks[i];
393
393
  WriteObject(a,k,ctx);
394
394
  WriteObject(a,o[k],ctx);
395
395
  properties_written++;
@@ -404,7 +404,7 @@ const WriteJSArray = (a,o,ctx) => {
404
404
  const WriteJSReceiver = (a,o,ctx) => {
405
405
  if(is_untf(o)) {
406
406
  WriteOddball(a,o,ctx);
407
- } else if(_misc.IsSmi(o)) {
407
+ } else if(_misc.IsSmi(o)) {
408
408
  WriteSmi(a,o,ctx);
409
409
  } else if(_typis.is_num(o)) {
410
410
  WriteHeapNumber(a,o,ctx);
@@ -415,7 +415,7 @@ const WriteJSReceiver = (a,o,ctx) => {
415
415
  } else if(_typis.is_sym(o)) {
416
416
  let phantom = CreatFakeCantBeSered("Symbol",o.description);
417
417
  WriteJSObject(a,phantom,ctx);
418
- } else {
418
+ } else {
419
419
  let [already_exists,idx] = ctx.idmap.FindOrInsert(o);
420
420
  if (already_exists) {
421
421
  WriteTag(a,SerializationTag.kObjectReference,ctx);