ladybird/Libraries/LibJS/Tests/regress
Luke Wilde f12b6b258f LibJS: Don't use presence of function params to identify function scope
Instead, we can just use the scope type to determine if a scope is a
function scope.

This fixes using `this` for parameter default values in arrow functions
crashing. This happened by `uses_this_from_environment` was not set in
`set_uses_this`, as it didn't think it was in a function scope whilst
parsing parameters.

Fixes closing modal dialogs causing a crash on https://www.ikea.com/

No test262 diff.

Reverts the functional part of 08cfd5f, because it was a workaround for
this issue.
2025-06-17 20:48:45 +02:00
..
add-property-with-the-same-from-getter-in-prototype.js LibJS: Skip caching get_by_id() if object's shape is changed by a getter 2025-05-20 19:10:56 -04:00
allow-await-in-a-func-def-assigned-to-default-param.js
async-generator-function-set-completion-type.js LibJS: Make SetCompletionType bytecode instruction actually set type 2025-04-05 15:00:05 +02:00
bogus-program-counter.js
function-bind-arguments.js LibJS: Avoid redundant ExecutionContext allocation for bound functions 2025-05-07 13:20:41 +02:00
proxied-constructor-leads-to-use-after-free.js LibJS: Fix UAF in ECMAScriptFunctionObject::internal_construct 2025-03-19 10:31:00 +01:00
super-length-crash.js LibJS: Cache length identifier for GetLengthWithThis 2025-04-07 14:40:48 +02:00
using-this-in-default-value-of-arrow-function-parameter.js LibJS: Don't use presence of function params to identify function scope 2025-06-17 20:48:45 +02:00