cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2026-01-17 15:25:10 +03:00
parent 58d09563aa
commit 2c72693d03
3 changed files with 1 additions and 16 deletions

View File

@ -1,6 +1,6 @@
{
"name": "ig-serialize",
"version": "1.3.0",
"version": "1.3.1",
"description": "experimental extended json serializaion...",
"main": "serialize.js",
"scripts": {

View File

@ -54,7 +54,6 @@
/*********************************************************************/
var EMPTY = '<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){

View File

@ -228,11 +228,6 @@ test.Cases({
// arrays...
['[1,2,]', '[1,2]'],
// sparse arrays...
['[,]', '[<empty>]'],
['[1,2,,]', '[1,2,<empty>]'],
['[1,2,<empty>,]', '[1,2,<empty>]'],
],
'syntax-simplifications': function(assert){
var aa, bb