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

Spread operator unsupported? #2554

Closed
wintered opened this issue Sep 7, 2024 · 1 comment
Closed

Spread operator unsupported? #2554

wintered opened this issue Sep 7, 2024 · 1 comment

Comments

@wintered
Copy link

wintered commented Sep 7, 2024

Commit: 5dd1101

[514] % node bug1.js 
[515] % espruino bug1.js 

 ____         _ 
| __|___ ___ ___ _ _|_|___ ___ 
| __|_ -| . | _| | | |  | . |
|____|___| _|_| |___|_|_|_|___|
     |_| espruino.com
 2v24.24 (c) 2024 G.Williams

Espruino is Open Source. Our work is supported
only by sales of official boards and donations:
http://espruino.com/Donate

Uncaught SyntaxError: Got '.' expected EOF
Uncaught undefined
[516] % cat bug1.js 
var a = [1];
var b = [...a]; // the spread operator not supported
@gfwilliams
Copy link
Member

That's not a bug - it''s in the wishlist at #1302 and the fact it's not there is documented on https://www.espruino.com/Features

There's quite a lot of ES6+ that's not implemented right now

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