Age | Commit message (Collapse) | Author |
|
Rather than printing them to stderr directly the parser now keeps a
Vector<Error>, which allows the "owner" of the parser to consume them
individually after parsing.
The Error struct has a message, line number, column number and a
to_string() helper function to format this information into a meaningful
error message.
The Function() constructor will now include an error message when
throwing a SyntaxError.
|
|
|
|
|
|
...as it is supposed to be.
|
|
|
|
The addition of assert functions to Userland/js
was done before we had load(..) implemented. Now
that it exists, it seems like the right move the
test helper functions to pure javascript instead
of poluting js with random global functions.
|
|
Switch the LibJS test suite to use the native assert implementation
surfaced inside the js repl when it's launched in test mode.
|
|
|