ladybird/Userland/Libraries/LibJS/Tests/functions
Linus Groh 99f9609e45 LibJS: Evaluate function arguments before checking callee type
In the spec, this happens in the EvaluateCall abstract operation
(https://tc39.es/ecma262/#sec-evaluatecall), and the order is defined
as:

    3. Let argList be ? ArgumentListEvaluation of arguments.
    4. If Type(func) is not Object, throw a TypeError exception.
    5. If IsCallable(func) is false, throw a TypeError exception.

In LibJS this is handled by CallExpression::execute(), which had the
callee function check first and would therefore never evaluate the
arguments for a non-function callee.
2021-09-13 17:44:08 +01:00
..
arrow-functions.js LibJS: Allow patterns in parenthesized arrow function parameters 2021-07-02 14:59:03 +02:00
constructor-basic.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
function-default-parameters.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
function-destructuring-parameters.js LibJS: Add tests for destructuring assignments and function parameters 2021-05-29 23:02:23 +04:30
function-duplicate-parameters.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
function-evaluation-order.js LibJS: Evaluate function arguments before checking callee type 2021-09-13 17:44:08 +01:00
function-hoisting.js LibJS: Improve function hoisting across blocks 2021-07-06 00:15:37 +01:00
function-length.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
function-missing-arg.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
function-name.js Only apply auto-naming of function expressions based on syntax 2021-03-22 12:44:07 +01:00
function-nesting.js LibJS: Ensure function declarations don't leak outside function scopes 2021-05-13 23:59:00 +01:00
function-new-target.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
function-prototype-writable.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
function-rest-params.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
function-spread.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
function-strict-mode.js LibJS: Fix functions binding this to global object in strict mode 2021-06-04 13:00:37 +01:00
function-this-in-arguments.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
function-TypeError.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00