mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 14:34:59 +00:00
![]() 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. |
||
---|---|---|
.. | ||
arrow-functions.js | ||
constructor-basic.js | ||
function-default-parameters.js | ||
function-destructuring-parameters.js | ||
function-duplicate-parameters.js | ||
function-evaluation-order.js | ||
function-hoisting.js | ||
function-length.js | ||
function-missing-arg.js | ||
function-name.js | ||
function-nesting.js | ||
function-new-target.js | ||
function-prototype-writable.js | ||
function-rest-params.js | ||
function-spread.js | ||
function-strict-mode.js | ||
function-this-in-arguments.js | ||
function-TypeError.js |