Hirse / brackets-outline-list

Extension for Brackets and Phoenix to display a list of the functions or definitions in the currently opened document.
MIT License
79 stars 30 forks source link

Deconstructive assignment breaks parsing #88

Closed lennyby93 closed 7 years ago

lennyby93 commented 7 years ago

Details about your environment

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.