boa-dev / boa

Boa is an embeddable and experimental Javascript engine written in Rust. Currently, it has support for some of the language.
MIT License
5.04k stars 399 forks source link

Remove `FormalParameterList` from `CodeBlock` #3882

Closed HalidOdat closed 3 months ago

HalidOdat commented 3 months ago

This is a simple change that removes the formal parameter list from codeblock which was only needed in non-strict mode and compute the required binding indices when needed during compilation, instead of every function call. This also reduces the CodeBlock size by 16 bytes.

github-actions[bot] commented 3 months ago

Test262 conformance changes

Test result main count PR count difference
Total 50,213 50,213 0
Passed 42,981 42,981 0
Ignored 1,411 1,411 0
Failed 5,821 5,821 0
Panics 0 0 0
Conformance 85.60% 85.60% 0.00%