ladybird/Userland/Libraries/LibJS/Tests/functions
Aliaksandr Kalenik 2f85faef0f LibJS: Fix scope detection for ids in default function params
This change fixes an issue where identifiers used in default function
parameters were being "registered" in the function's parent scope
instead of its own scope. This bug resulted in incorrectly detected
local variables. (Variables used in the default function parameter
expression should be considered 'captured by nested function'.)

To resolve this issue, the function scope is now created before parsing
function parameters. Since function parameters can no longer be passed
in the constructor, a setter function has been introduced to set them
later, when they are ready.
2023-07-08 14:03:12 +02:00
..
arrow-functions.js LibJS: Implement [[Call]] and [[Construct]] internal slots properly 2021-10-09 14:29:20 +01:00
constructor-basic.js
function-default-parameters.js LibJS: Fix scope detection for ids in default function params 2023-07-08 14:03:12 +02:00
function-destructuring-parameters.js
function-duplicate-parameters.js
function-evaluation-order.js LibJS: Evaluate NewExpression arguments before checking constructor type 2021-12-30 01:02:30 +01:00
function-hoisting.js
function-length.js
function-missing-arg.js
function-name.js
function-nesting.js
function-new-target.js LibJS: Add tests for the new steps added to PerformEval 2022-04-11 21:23:36 +01:00
function-prototype-writable.js
function-rest-params.js
function-spread.js
function-strict-mode.js
function-this-in-arguments.js
function-TypeError.js