Andreas Kling
c9f0f0fc70
LibJS: Elide empty lexical environment in for..in/of blocks
...
When all the variables in a for..in/of block's lexical scope have been
turned into locals, we don't need to create and immediately abandon an
empty environment for them.
This avoid environment allocation in cases like this:
function foo(a) {
for (const x of a) {
}
}
2023-12-07 10:52:57 +01:00
..
2023-12-07 10:52:57 +01:00
2023-11-19 12:10:31 +01:00
2023-11-29 09:48:18 +01:00
2023-11-29 09:48:18 +01:00
2023-12-06 12:58:04 +01:00
2023-12-06 12:58:04 +01:00
2023-12-03 20:46:55 +01:00
2023-11-29 09:48:18 +01:00
2023-11-30 09:51:46 -05:00
2023-11-29 09:48:18 +01:00
2023-12-06 12:58:04 +01:00
2023-12-03 20:46:55 +01:00
2023-12-03 20:46:55 +01:00
2023-09-17 21:00:11 +02:00
2023-12-03 20:46:55 +01:00
2023-12-03 20:46:55 +01:00
2023-12-03 20:46:55 +01:00
2023-12-03 20:46:55 +01:00
2023-12-03 20:46:55 +01:00
2023-09-12 17:21:42 +02:00
2023-11-19 12:10:31 +01:00
2023-12-03 20:46:55 +01:00
2023-09-12 17:21:42 +02:00
2023-09-12 17:21:42 +02:00
2023-09-12 17:21:42 +02:00
2023-12-06 12:58:04 +01:00
2023-11-29 09:48:18 +01:00
2023-08-29 07:57:39 -04:00
2023-12-03 20:46:55 +01:00
2023-12-03 20:46:55 +01:00
2023-10-13 18:33:21 +03:30