You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// works
let Y = {
_y:0,
get y () { return this._y }
};
print(Y.y);
// fails because of pretokenise
(function () {
let X = {
_x:0,
get x () { return this._x }
};
print(X.x);
})();
While maybe ID after ID might not normally be valid JS, so as not to cause issues, get and set are not treated as reserved words so it is possible to have ID then ID. We should just silently handle it and insert a space.
The text was updated successfully, but these errors were encountered:
gfwilliams
added a commit
to espruino/EspruinoTools
that referenced
this issue
Jan 15, 2020
As in http://forum.espruino.com/conversations/342660/#comment15061030
While maybe ID after ID might not normally be valid JS, so as not to cause issues,
get
andset
are not treated as reserved words so it is possible to have ID then ID. We should just silently handle it and insert a space.The text was updated successfully, but these errors were encountered: