Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_arrayIsArray not defined #3

Open
msongz opened this issue Oct 30, 2022 · 4 comments
Open

_arrayIsArray not defined #3

msongz opened this issue Oct 30, 2022 · 4 comments

Comments

@msongz
Copy link

msongz commented Oct 30, 2022

in this case, _arrayIsArray() not defined

let str = "Hello";
alert( [...str] ); // H,e,l,l,o
@Klustre
Copy link
Owner

Klustre commented Nov 1, 2022

This is an issue with babel-preset-extendscript

@msongz
Copy link
Author

msongz commented Nov 6, 2022

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?

@Klustre
Copy link
Owner

Klustre commented Nov 6, 2022

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.

@msongz
Copy link
Author

msongz commented Nov 6, 2022

yeah, sure fusepilot/babel-preset-extendscript#14 (comment)
but I have no idea how the _arrayIsArray work or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants