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
HTML and XML need to return error nodes when finding mismatched tag names. Parsers like readline need to prevent errors from affecting other lines. Aliasing nodes to $.ERROR does not construct an actual error symbol under the hood.
Expected behavior
This could either be implemented as a special case to alias() where alias($.foo, $.ERROR) wraps $.foo in an error symbol, or as a new function error([node]) which will wrap the node or directly return an error if called without one.
The text was updated successfully, but these errors were encountered:
Problem
HTML and XML need to return error nodes when finding mismatched tag names. Parsers like readline need to prevent errors from affecting other lines. Aliasing nodes to
$.ERROR
does not construct an actual error symbol under the hood.Expected behavior
This could either be implemented as a special case to
alias()
wherealias($.foo, $.ERROR)
wraps$.foo
in an error symbol, or as a new functionerror([node])
which will wrap the node or directly return an error if called without one.The text was updated successfully, but these errors were encountered: