Project

General

Profile

Defect #570

Arrays are misbehaving after being serialized

Added by Robert Ivens over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
11/05/2012
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

The following code outputs: [1],[3,4] instead of 1,3,4 .
So it seems the fromJSON() function doesn't give real JS Arrays back.

    var _aOriginal = plugins.VelocityReport.fromJSON(plugins.VelocityReport.toJSON(['1', '2', '3', '4'])),
        _aTmp,
        _aTmp2,
        _nPos = 2,
        _nLength = _aOriginal.length;

    //_aOriginal = ['1', '2', '3', '4']; // a real JS Array

    _aTmp = _aOriginal.slice(0, _nPos - 1);
    _aTmp = _aTmp.concat(_aOriginal.slice(_nPos, _nLength));
    _aOriginal = _aTmp;

    application.output(_aOriginal.join(","));

History

#1

Updated by Patrick Talbot over 11 years ago

  • Status changed from New to Closed

Fixed with v2.0.28

Also available in: Atom PDF