From 2c72693d03b1d6cdf6386143a74b5d4a91005781 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 17 Jan 2026 15:25:10 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- package.json | 2 +- serialize.js | 10 ---------- test.js | 5 ----- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/package.json b/package.json index 9369cb7..0c295ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-serialize", - "version": "1.3.0", + "version": "1.3.1", "description": "experimental extended json serializaion...", "main": "serialize.js", "scripts": { diff --git a/serialize.js b/serialize.js index 7c72af3..6f85e2d 100644 --- a/serialize.js +++ b/serialize.js @@ -54,7 +54,6 @@ /*********************************************************************/ -var EMPTY = '' var NULL = 'null' var UNDEFINED = 'undefined' var NAN = 'NaN' @@ -558,15 +557,6 @@ module.eJSON = { initial instanceof Array && initial.length++ continue } - if(str.slice(i, i+EMPTY.length) == EMPTY){ - index++ - i += EMPTY.length - if(str[i] == ','){ - i++ } - // XXX this feels hackish -- can this be deligated to the handler??? - initial instanceof Array - && initial.length++ - continue } // end of input... if(i >= str.length-1){ diff --git a/test.js b/test.js index ed9fac6..5554437 100755 --- a/test.js +++ b/test.js @@ -228,11 +228,6 @@ test.Cases({ // arrays... ['[1,2,]', '[1,2]'], - - // sparse arrays... - ['[,]', '[]'], - ['[1,2,,]', '[1,2,]'], - ['[1,2,,]', '[1,2,]'], ], 'syntax-simplifications': function(assert){ var aa, bb