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

'of' is a reserved word in Espruino, not Ecmascript spec #2047

Open
gfwilliams opened this issue Sep 14, 2021 · 2 comments
Open

'of' is a reserved word in Espruino, not Ecmascript spec #2047

gfwilliams opened this issue Sep 14, 2021 · 2 comments

Comments

@gfwilliams
Copy link
Member

function of() { }

from http://forum.espruino.com/conversations/367633/#comment16165372

Or the Layout module seems to suffer similarly - not sure if it's the same issue: https://github.com/espruino/BangleApps/blob/master/modules/Layout.js

@gfwilliams
Copy link
Member Author

This is another one:

// performs pretokenisation in Espruino
function x() {"ram" return {undefined:42}}

>x()
{ "": 42 }

Pretokeniser converts undefined to a token, then Espruino requests the string value from the token with jslGetTokenValueAsVar and it fails.

@gfwilliams
Copy link
Member Author

Actually, unrelated - last post is a separate issue, fixed with b03f6db

@gfwilliams gfwilliams changed the title Errors during execution of pretokenised code 'of' is a reserved word in Espruino, not Ecmascript spec Sep 16, 2021
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

1 participant