1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 14:34:59 +00:00
serenity/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 LibJS: Add tests for destructuring assignments and function parameters 2021-05-29 23:02:23 +04:30
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 LibJS: Improve function hoisting across blocks 2021-07-06 00:15:37 +01:00
function-length.js
function-missing-arg.js
function-name.js LibJS: Make scoping follow the spec 2021-09-30 08:16:32 +01:00
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 LibJS: Fix functions binding this to global object in strict mode 2021-06-04 13:00:37 +01:00
function-this-in-arguments.js
function-TypeError.js