Skip to main content
Known Participant
September 21, 2010
Question

SSAS change in FMS 4 = VM update?

  • September 21, 2010
  • 1 reply
  • 852 views

The following code behaves differently in FMS 3.5 vs. FMS 4:


    var loops;
    loops = 0;
    var obj = {
        r1: 'v1',
        r2: 'v2'
    };
    for(var iter in obj)
    {
        delete obj['r1'];
        delete obj['r2'];
        loops++;
    }
    Tester.assert(loops == 2, 'Deleting items in an object while iterating does not affect the iteration.');

FMS 3.5 ends up with 2 loops, FMS 4 ends up with 1 (The correct behavior).  Was the JavaScript VM updated?

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    September 22, 2010

    Yes it was

    Known Participant
    September 22, 2010

    So it uses JavaScript 1.7 now?  You could mention that in the Release Notes, so I know why my code broke, why it's faster, or that it might stop leaking memory.  Absolute timecode and RTMFP are super boring features, there's room to mention SSAS.

    Participating Frequently
    September 22, 2010

    Yes its 1.7 now