summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Tests/parser-line-terminators.js
AgeCommit message (Collapse)Author
2022-01-16LibJS: Implement create_dynamic_function() according to the specLinus Groh
The three major changes are: - Parsing parameters, the function body, and then the full assembled function source all separately. This is required by the spec, as function parameters and body must be valid each on their own, which cannot be guaranteed if we only ever parse the full function. - Returning an ECMAScriptFunctionObject instead of a FunctionExpression that needs to be evaluated separately. This vastly simplifies the {Async,AsyncGenerator,Generator,}Function constructor implementations. Drop '_node' from the function name accordingly. - The prototype is now determined via GetPrototypeFromConstructor and passed to OrdinaryFunctionCreate.
2021-09-06LibJS: Fix that windows style line endings were not ignored or converteddavidot
These are tested by test262 but the current test262-runner reads the files in python which automatically converts \r\n to \n. This meant that we passed the tests while we should not have.
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling