summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/Function.js
AgeCommit message (Collapse)Author
2020-05-15LibJS: Let parser keep track of errorsLinus Groh
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.
2020-05-13LibJS: Make the Function() constructor throw a SyntaxError, not returnLinus Groh
2020-05-02LibJS: Add "name" property to functionsLinus Groh
2020-05-02LibJS: Name functions created by "Function" "anonymous"Linus Groh
...as it is supposed to be.
2020-04-16LibJS: Remove outdated FIXME now that we have lexical environmentsLinus Groh
2020-04-14js/LibJS: Move test functions to pure javascript.Brian Gianforcaro
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.
2020-04-05LibJS: Use the native assert() implementation now avaiable in 'js -t'Brian Gianforcaro
Switch the LibJS test suite to use the native assert implementation surfaced inside the js repl when it's launched in test mode.
2020-04-04LibJS: Add Function() and Function.prototypeLinus Groh