Hirse/brackets-outline-list

Deconstructive assignment breaks parsing

lennyby93 opened this issue · 0 comments

Details about your environment

  • Brackets Version: 1.9
  • Brackets Outline List Version: 1.0.1

What did you do? Please include the actual source code causing the issue.

"use strict";

//this is only a demo
function testme(address) {

    var interfaceId, pvid, cvid;

    [, interfaceId, pvid, cvid] = address.match(/(\d+):(\d+):(\d+)$/);

    return interfaceId + pvid + cvid;
}

testme("1:2:3");

What did you expect to happen? How did you expect the Outline to look?

I expected outline to be able to id the 'testme' function.

What actually happened? How did the Outline actually look?

The outline window remains empty.
If I comment out the array deconstruction outline starts to work correctly.