We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i'm trying to check if an object has a prototype-
if a::b then c # specific property check - ok if a:: and b then c # no property specified - not ok
the latter example compiles to if (a.prototype.and(b)), but the intention was if (a.prototype && b).
if (a.prototype.and(b))
if (a.prototype && b)
the fix is to treat spaces around .prototype. vs. :: differently. ie.
.prototype.
::
a::b #=> a.prototype.b a:: b #=> a.prototype(b) a::b and c #=> a.prototype.b && c a:: and c #=> a.prototype && c
in the meantime, the workaround is to use parens-
if (a::) and b then c
The text was updated successfully, but these errors were encountered:
Duplicate of #1601. The unary form of :: will be removed... some day. Don't use it.
Sorry, something went wrong.
sgtm. thanks for the quick response.
No branches or pull requests
i'm trying to check if an object has a prototype-
the latter example compiles to
if (a.prototype.and(b))
, but the intention wasif (a.prototype && b)
.the fix is to treat spaces around
.prototype.
vs.::
differently. ie.in the meantime, the workaround is to use parens-
The text was updated successfully, but these errors were encountered: