extender icon indicating copy to clipboard operation
extender copied to clipboard

_arrayIsArray not defined

Open msongz opened this issue 1 year ago • 4 comments

in this case, _arrayIsArray() not defined

let str = "Hello";
alert( [...str] ); // H,e,l,l,o

msongz avatar Oct 30 '22 11:10 msongz

This is an issue with babel-preset-extendscript

Klustre avatar Nov 01 '22 09:11 Klustre

Hi @Klustre , _arrayIsArray() is "exist" at some situations, I can manually change it to _arrayIsArray2() so it can works properly, but how can we automatic this workaround? maybe adding some user defined replacement each builds?

msongz avatar Nov 06 '22 09:11 msongz

This needs to be fixed upstream in babel-preset-extendscript because the issue exists there. I'm a maintainer, but haven't gotten to work on it yet.

Can you open an issue in babel-preset-extendscript and show some of the things you've tried and their outcome? Like, when does _arrayIsArray exists and when not, etc.

I'm keeping the issue open here as a reference for others until it's fixed.

Klustre avatar Nov 06 '22 12:11 Klustre

yeah, sure https://github.com/fusepilot/babel-preset-extendscript/issues/14#issue-1437451055 but I have no idea how the _arrayIsArray work or not

msongz avatar Nov 06 '22 15:11 msongz