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
wait for load or 1s
if the result is not an Event
throw 'Took too long to load.'
end
Workaround
The comparison the result is not an Event, fails to parse, but replacing the an with an a makes it hunky dory.
Potential Fix
Either we can (1) update the docs, or (2) update the parser to allow the construct of is not an Event.
I personally favor extending the parser to make this work.
Error
Stacktrace:
at a.raiseParseError (http://unpkg.com/hyperscript.org@0.9.12:1:12649)
at i.raiseError (http://unpkg.com/hyperscript.org@0.9.12:1:6620)
at i.requireToken (http://unpkg.com/hyperscript.org@0.9.12:1:7520)
at http://unpkg.com/hyperscript.org@0.9.12:1:71097
The text was updated successfully, but these errors were encountered:
KDreynolds
pushed a commit
to KDreynolds/_hyperscript
that referenced
this issue
Mar 6, 2024
Problem
The documentation for the
wait
command advertises syntax that doesn't actually parse.On this page of the docs:
https://hyperscript.org/commands/wait/#description
This snippet:
Workaround
The comparison
the result is not an Event
, fails to parse, but replacing thean
with ana
makes it hunky dory.Potential Fix
Either we can (1) update the docs, or (2) update the parser to allow the construct of
is not an Event
.I personally favor extending the parser to make this work.
Error
Stacktrace:
The text was updated successfully, but these errors were encountered: